X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=e12e821d0fbefe8c1e84bcfe3d486d70a2f60b3e;hb=6d7c9805c78ef668e6351c5dcb3f25518c1230cd;hp=b28471793ff3eb85068a0e910521d56d941e1ace;hpb=e833f2fdc5164b9a9403baa2ee10cae2003cec88;p=ppu.git diff --git a/setup.py b/setup.py index b284717..e12e821 100755 --- a/setup.py +++ b/setup.py @@ -1,14 +1,23 @@ #!/usr/bin/env python +import sys + try: from setuptools import setup + is_setuptools = True except ImportError: from distutils.core import setup + is_setuptools = False + +kw = {} +if is_setuptools: + if (sys.version_info[:2] == (2, 6)): + kw['install_requires'].append('argparse') setup(name='ppu', - version='0.2.0', + version='0.3.2', description='Broytman Portable Python Utilities', - long_description=open('README.txt', 'rU').read(), + long_description=open('README.rst', 'rU').read(), author='Oleg Broytman', author_email='phd@phdru.name', url='http://phdru.name/Software/Python/ppu/', @@ -16,7 +25,7 @@ setup(name='ppu', platforms=['any'], keywords=[''], classifiers=[ - 'Development Status :: 3 - Alpha', + 'Development Status :: 4 - Beta', 'Environment :: Console', 'Environment :: Web Environment', 'Intended Audience :: End Users/Desktop', @@ -31,5 +40,8 @@ setup(name='ppu', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], - scripts=['cmp.py', 'remove-old-files.py', 'rm.py'], + scripts=[ + 'scripts/cmp.py', 'scripts/remove-old-files.py', 'scripts/rm.py', + ], + **kw )