diff options
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1,8 +1,10 @@ -try: - from setuptools import setup -except ImportError: - from distutils.core import setup +import sys import os.path +if sys.version >= '3': + from setuptools import setup # needed for the flag use_2to3 +else: + from distutils.core import setup + def getversion(fname): """Get the __version__ reading the file: works both in Python 2.X and 3.X, @@ -19,13 +21,13 @@ if __name__ == '__main__': setup(name='decorator', version=VERSION, description='Better living through Python with decorators', - long_description=open('README.txt').read(), + long_description=open('README.rst').read(), author='Michele Simionato', author_email='michele.simionato@gmail.com', url='http://pypi.python.org/pypi/decorator', license="BSD License", - package_dir = {'': 'src'}, - py_modules = ['decorator'], + package_dir={'': 'src'}, + py_modules=['decorator'], keywords="decorators generic utility", platforms=["All"], classifiers=['Development Status :: 5 - Production/Stable', |
