]> git.phdru.name Git - ppu.git/blobdiff - setup.py
Fix deps: Add argparse to install_requires for Py 2.6
[ppu.git] / setup.py
index cc0016cf8471187ba69b945b5bf3e7263cdf8af9..e12e821d0fbefe8c1e84bcfe3d486d70a2f60b3e 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,22 +1,31 @@
 #!/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='remove-old-files',
-      version='0.2.0',
-      description='Broytman remove-old-files',
-      long_description=open('README.txt', 'rU').read(),
+setup(name='ppu',
+      version='0.3.2',
+      description='Broytman Portable Python Utilities',
+      long_description=open('README.rst', 'rU').read(),
       author='Oleg Broytman',
       author_email='phd@phdru.name',
-      url='http://phdru.name/Software/Python/remove-old-files/',
+      url='http://phdru.name/Software/Python/ppu/',
       license='GPL',
       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='remove-old-files',
           'Programming Language :: Python :: 3.5',
           'Programming Language :: Python :: 3.6',
       ],
-      scripts=['remove-old-files.py'],
+      scripts=[
+          'scripts/cmp.py', 'scripts/remove-old-files.py', 'scripts/rm.py',
+      ],
+      **kw
       )