diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-04-06 17:39:14 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-04-06 17:39:14 +0200 |
commit | 3df8635fedb722cad1d0587d7b87d79969030a62 (patch) | |
tree | 99b046b8b0ca0fb06461fd42a3846c879937f805 | |
parent | c8c2b738a3721b58a74554eb260619c9a7560b8e (diff) | |
download | pep8-3df8635fedb722cad1d0587d7b87d79969030a62.tar.gz |
Release version 1.0.11.0.1
-rw-r--r-- | CHANGES.txt | 6 | ||||
-rwxr-xr-x | pep8.py | 2 | ||||
-rw-r--r-- | setup.py | 30 |
3 files changed, 30 insertions, 8 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 7e8f6ba..d91bd0d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,6 +2,12 @@ Changelog ========= +1.0.1 (2012-04-06) +------------------ + +* Fix inconsistent version numbers. + + 1.0 (2012-04-04) ---------------- @@ -92,7 +92,7 @@ for space. """ -__version__ = '0.7.1dev' +__version__ = '1.0.1' import os import sys @@ -1,16 +1,32 @@ from setuptools import setup, find_packages -version = '1.0' -long_description = '\n\n'.join([open('README.rst').read(), - open('CHANGES.txt').read(), -# open('TODO.txt').read(), - ]) + +def get_version(): + f = open('pep8.py') + try: + for line in f: + if line.startswith('__version__'): + return eval(line.split('=')[-1]) + finally: + f.close() + + +def get_long_description(): + descr = [] + for fname in 'README.rst', 'CHANGES.txt': # , 'TODO.txt' + f = open(fname) + try: + descr.append(f.read()) + finally: + f.close() + return '\n\n'.join(descr) + setup( name='pep8', - version=version, + version=get_version(), description="Python style guide checker", - long_description=long_description, + long_description=get_long_description(), keywords='pep8', author='Johann C. Rocholl', author_email='johann@rocholl.net', |