]> git.phdru.name Git - ppu.git/blob - setup.py
Fix deps: Add argparse to install_requires for Py 2.6
[ppu.git] / setup.py
1 #!/usr/bin/env python
2
3 import sys
4
5 try:
6     from setuptools import setup
7     is_setuptools = True
8 except ImportError:
9     from distutils.core import setup
10     is_setuptools = False
11
12 kw = {}
13 if is_setuptools:
14     if (sys.version_info[:2] == (2, 6)):
15         kw['install_requires'].append('argparse')
16
17 setup(name='ppu',
18       version='0.3.2',
19       description='Broytman Portable Python Utilities',
20       long_description=open('README.rst', 'rU').read(),
21       author='Oleg Broytman',
22       author_email='phd@phdru.name',
23       url='http://phdru.name/Software/Python/ppu/',
24       license='GPL',
25       platforms=['any'],
26       keywords=[''],
27       classifiers=[
28           'Development Status :: 4 - Beta',
29           'Environment :: Console',
30           'Environment :: Web Environment',
31           'Intended Audience :: End Users/Desktop',
32           'License :: OSI Approved :: GNU General Public License (GPL)',
33           'Operating System :: OS Independent',
34           'Programming Language :: Python :: 2',
35           'Programming Language :: Python :: 2.6',
36           'Programming Language :: Python :: 2.7',
37           'Programming Language :: Python :: 3',
38           'Programming Language :: Python :: 3.3',
39           'Programming Language :: Python :: 3.4',
40           'Programming Language :: Python :: 3.5',
41           'Programming Language :: Python :: 3.6',
42       ],
43       scripts=[
44           'scripts/cmp.py', 'scripts/remove-old-files.py', 'scripts/rm.py',
45       ],
46       **kw
47       )