forked from wolph/python-progressbar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (66 loc) · 2.09 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup, find_packages
# To prevent importing about and thereby breaking the coverage info we use this
# exec hack
about = {}
with open('progressbar/__about__.py', encoding='utf8') as fp:
exec(fp.read(), about)
install_reqs = []
if sys.argv[-1] == 'info':
for k, v in about.items():
print('%s: %s' % (k, v))
sys.exit()
if os.path.isfile('README.rst'):
with open('README.rst') as fh:
readme = fh.read()
else:
readme = \
'See http://pypi.python.org/pypi/%(__package_name__)s/' % about
if __name__ == '__main__':
setup(
name='progressbar2',
version=about['__version__'],
author=about['__author__'],
author_email=about['__email__'],
description=about['__description__'],
url=about['__url__'],
license=about['__license__'],
keywords=about['__title__'],
packages=find_packages(exclude=['docs']),
long_description=readme,
include_package_data=True,
install_requires=[
'python-utils>=3.4.5',
],
setup_requires=['setuptools'],
zip_safe=False,
extras_require={
'docs': [
'sphinx>=1.8.5',
],
'tests': [
'flake8>=3.7.7',
'pytest>=4.6.9',
'pytest-cov>=2.6.1',
'pytest-mypy',
'freezegun>=0.3.11',
'sphinx>=1.8.5',
'dill>=0.3.6',
],
},
python_requires='>=3.7.0',
classifiers=[
'Development Status :: 6 - Mature',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: PyPy',
],
)