Commits

German Larrain committed 37c51e2 Draft

setup: import version from package instead of a hardcoded duplicated value

Comments (0)

Files changed (1)

     use_setuptools()
     from setuptools import setup
 
+version = __import__('py').__version__
+
 def main():
     setup(
         name='py',
         description='library with cross-python path, ini-parsing, io, code, log facilities',
         long_description = open('README.txt').read(),
-        version='1.4.16.dev1',
+        version=version,
         url='http://pylib.readthedocs.org/',
         license='MIT license',
         platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],