]> git.phdru.name Git - ppu.git/blob - setup.py
Tests(tox.ini): Don't whitelist flake8
[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 ppu_version = load_source("ppu_version", versionpath)
19
20 setup(name='ppu',
21       version=ppu_version.__version__,
22       description='Broytman Portable Python Utilities',
23       long_description=open('README.rst', 'rU').read(),
24       author='Oleg Broytman',
25       author_email='phd@phdru.name',
26       url='http://phdru.name/Software/Python/ppu/',
27       license='GPL',
28       platforms='Any',
29       classifiers=[
30           'Development Status :: 5 - Production/Stable',
31           'Environment :: Console',
32           'Intended Audience :: End Users/Desktop',
33           'License :: OSI Approved :: GNU General Public License (GPL)',
34           'Operating System :: OS Independent',
35           'Programming Language :: Python :: Implementation :: CPython',
36           'Programming Language :: Python :: Implementation :: PyPy',
37           'Programming Language :: Python :: 2',
38           'Programming Language :: Python :: 2.7',
39           'Programming Language :: Python :: 3',
40           'Programming Language :: Python :: 3.3',
41           'Programming Language :: Python :: 3.4',
42           'Programming Language :: Python :: 3.5',
43           'Programming Language :: Python :: 3.6',
44       ],
45       packages=['ppu'],
46       scripts=[
47           'scripts/cmp.py', 'scripts/remove-old-files.py', 'scripts/rm.py',
48           'scripts/which.py',
49       ],
50       **kw
51       )