3 from os.path import abspath, dirname, join
4 from setuptools import setup
7 versionpath = join(abspath(dirname(__file__)), 'ppu', '__version__.py')
10 if sys.version_info[:2] == (2, 7):
11 execfile(versionpath, ppu_version) # noqa: F821 'execfile' Py3
13 elif sys.version_info >= (3, 4):
14 exec(open(versionpath, 'rU').read(), ppu_version)
17 raise ImportError("ppu requires Python 2.7 or 3.4+")
21 version=ppu_version['__version__'],
22 description='Broytman Portable Python Utilities',
23 long_description=open('README.rst', 'rU').read(),
24 long_description_content_type="text/x-rst",
25 author='Oleg Broytman',
26 author_email='phd@phdru.name',
27 url='https://phdru.name/Software/Python/ppu/',
29 'Homepage': 'https://phdru.name/Software/Python/ppu/',
30 'Documentation': 'https://phdru.name/Software/Python/ppu/docs/',
31 'Download': 'https://pypi.org/project/ppu/%s/'
32 % ppu_version['__version__'],
33 'Git repo': 'https://git.phdru.name/ppu.git/',
34 'Github repo': 'https://github.com/phdru/ppu',
35 'Issue tracker': 'https://github.com/phdru/ppu/issues',
40 'Development Status :: 5 - Production/Stable',
41 'Environment :: Console',
42 'Intended Audience :: End Users/Desktop',
43 'License :: OSI Approved :: GNU General Public License (GPL)',
44 'Operating System :: OS Independent',
45 'Programming Language :: Python :: Implementation :: CPython',
46 'Programming Language :: Python :: Implementation :: PyPy',
47 'Programming Language :: Python :: 2',
48 'Programming Language :: Python :: 2.7',
49 'Programming Language :: Python :: 3',
50 'Programming Language :: Python :: 3.4',
51 'Programming Language :: Python :: 3.5',
52 'Programming Language :: Python :: 3.6',
53 'Programming Language :: Python :: 3.7',
54 'Programming Language :: Python :: 3.8',
55 'Programming Language :: Python :: 3.9',
59 'scripts/cmp.py', 'scripts/remove-old-files.py', 'scripts/rm.py',
62 python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',