]> git.phdru.name Git - ppu.git/blob - setup.py
Docs: Add rebuild script
[ppu.git] / setup.py
1 #!/usr/bin/env python
2
3 from imp import load_source
4 from os.path import abspath, dirname, join
5
6 try:
7     from setuptools import setup
8     is_setuptools = True
9 except ImportError:
10     from distutils.core import setup
11     is_setuptools = False
12
13 kw = {}
14 if is_setuptools:
15     kw['python_requires'] = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*'
16
17 versionpath = join(abspath(dirname(__file__)), "ppu", "__version__.py")
18 load_source("ppu_version", versionpath)
19 from ppu_version import __version__  # noqa: ignore flake8 E402
20
21 setup(name='ppu',
22       version=__version__,
23       description='Broytman Portable Python Utilities',
24       long_description=open('README.rst', 'rU').read(),
25       author='Oleg Broytman',
26       author_email='phd@phdru.name',
27       url='http://phdru.name/Software/Python/ppu/',
28       license='GPL',
29       platforms='Any',
30       classifiers=[
31           'Development Status :: 5 - Production/Stable',
32           'Environment :: Console',
33           'Intended Audience :: End Users/Desktop',
34           'License :: OSI Approved :: GNU General Public License (GPL)',
35           'Operating System :: OS Independent',
36           'Programming Language :: Python :: Implementation :: CPython',
37           'Programming Language :: Python :: Implementation :: PyPy',
38           'Programming Language :: Python :: 2',
39           'Programming Language :: Python :: 2.7',
40           'Programming Language :: Python :: 3',
41           'Programming Language :: Python :: 3.3',
42           'Programming Language :: Python :: 3.4',
43           'Programming Language :: Python :: 3.5',
44           'Programming Language :: Python :: 3.6',
45       ],
46       packages=['ppu'],
47       scripts=[
48           'scripts/cmp.py', 'scripts/remove-old-files.py', 'scripts/rm.py',
49           'scripts/which.py',
50       ],
51       **kw
52       )