forked from ReactiveX/RxPY
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
70 lines (58 loc) · 2.14 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
#!/usr/bin/env python3
import sys
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
from configparser import ConfigParser
# General project metadata is stored in project.cfg
with open('project.cfg') as project_file:
config = ConfigParser()
config.read_file(project_file)
project_meta = dict(config.items('project'))
# Populate the long_description field from README.rst
with open('README.rst') as readme_file:
project_meta['long_description'] = readme_file.read()
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
setup(
**{key: project_meta[key] for key in (
'name',
'version',
'description',
'long_description',
'author',
'author_email',
'license',
'url',
'download_url'
)},
zip_safe=True,
python_requires='>=3.6.0',
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules'
],
setup_requires=pytest_runner,
tests_require=['pytest>=4.6.1', 'pytest-asyncio>=0.10.0', 'coverage>=4.5.3'],
package_data={'rx': ['py.typed']},
packages=['rx', 'rx.internal', 'rx.core', 'rx.core.abc',
'rx.core.operators', 'rx.core.operators.connectable',
'rx.core.observable', 'rx.core.observer',
'rx.scheduler', 'rx.scheduler.eventloop', 'rx.scheduler.mainloop',
'rx.operators', 'rx.disposable', 'rx.subject',
'rx.testing'],
package_dir={'rx': 'rx'},
include_package_data=True
)