diff options
author | niemeyer <> | 2007-11-12 14:06:05 +0000 |
---|---|---|
committer | niemeyer <> | 2007-11-12 14:06:05 +0000 |
commit | 313ef14315e162119aeb9b0ee30d8d468cd23733 (patch) | |
tree | ab23d9d8f73c4d5399541609cfc240c43dc79848 | |
parent | c52a13d7d3057f33b98d25db7be14cefef88393f (diff) | |
download | dateutil-313ef14315e162119aeb9b0ee30d8d468cd23733.tar.gz |
Moving the version number to dateutil/__init__.py, as requested
by Darren Dale.
-rw-r--r-- | dateutil/__init__.py | 1 | ||||
-rw-r--r-- | setup.py | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/dateutil/__init__.py b/dateutil/__init__.py index 84d7c3e..e126992 100644 --- a/dateutil/__init__.py +++ b/dateutil/__init__.py @@ -6,3 +6,4 @@ datetime module. """ __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" +__version__ = "1.2" @@ -4,16 +4,23 @@ from distutils.core import setup from os.path import isfile, join import glob import os +import re + if isfile("MANIFEST"): os.unlink("MANIFEST") + # Get PYTHONLIB with no prefix so --prefix installs work. PYTHONLIB = join(get_python_lib(standard_lib=1, prefix=''), 'site-packages') ZONEINFO = join("dateutil", "zoneinfo") +VERSION = re.search('__version__ = "([^"]+)"', + open("dateutil/__init__.py").read()).group(1) + + setup(name="python-dateutil", - version = "1.2", + version = VERSION, description = "Extensions to the standard python 2.3+ datetime module", author = "Gustavo Niemeyer", author_email = "gustavo@niemeyer.net", |