diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-06-28 15:30:41 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-06-28 15:30:41 +0000 |
commit | 83c741755624cd255272380ff748f760c8d41c15 (patch) | |
tree | 78fad4aa1e8dfff9e7c86b01848e0dbdad3bd697 /setup.py | |
parent | c1b97056fc4e22526deb933465baa3a8e06c9be4 (diff) | |
download | mako-83c741755624cd255272380ff748f760c8d41c15.tar.gz |
- added "mako.__version__" attribute to
the base module. [ticket:110]
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,9 +1,13 @@ from setuptools import setup, find_packages +import os +import re -version = '0.2.5' +v = file(os.path.join(os.path.dirname(__file__), 'lib', 'mako', '__init__.py')) +VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1) +v.close() setup(name='Mako', - version=version, + version=VERSION, description="A super-fast templating language that borrows the \ best ideas from the existing templating languages.", long_description="""\ |