|
1 | 1 | """Setup module.""" |
2 | 2 | #!/usr/bin/env python |
3 | 3 |
|
4 | | -from setuptools import setup, find_packages |
5 | 4 | from os import path |
| 5 | +from setuptools import setup, find_packages |
6 | 6 |
|
7 | | -tests_require = [ |
| 7 | +TESTS_REQUIRES = [ |
8 | 8 | 'flake8', |
9 | | - 'pytest', |
| 9 | + 'pytest<=4.6', # for deprecated python versions: https://docs.pytest.org/en/latest/py27-py34-deprecation.html |
10 | 10 | 'pytest-mock', |
11 | 11 | 'coverage', |
12 | 12 | 'pytest-cov', |
13 | 13 | 'mock;python_version<"3"' |
14 | 14 | ] |
15 | | -install_requires = [ |
| 15 | + |
| 16 | +INSTALL_REQUIRES = [ |
16 | 17 | 'requests>=2.9.1', |
17 | 18 | 'pyyaml>=5.1', |
18 | 19 | 'future>=0.15.2', |
19 | 20 | 'docopt>=0.6.2', |
| 21 | + 'six>=1.10.0', |
20 | 22 | 'enum34;python_version<"3.4"', |
21 | | - 'six>=1.10.0;python_version<"3"', |
22 | 23 | 'futures>=3.0.5;python_version<"3"' |
23 | 24 | ] |
24 | 25 |
|
25 | 26 | with open(path.join(path.abspath(path.dirname(__file__)), |
26 | 27 | 'splitio', 'version.py')) as f: |
27 | | - exec(f.read()) |
| 28 | + exec(f.read()) # pylint: disable=exec-used |
28 | 29 |
|
29 | | -setup(name='splitio_client', |
30 | | - version=__version__, # noqa |
31 | | - description='Split.io Python Client', |
32 | | - author='Patricio Echague, Sebastian Arrubia', |
33 | | - author_email='pato@split.io, sebastian@split.io', |
34 | | - url='https://github.com/splitio/python-client', |
35 | | - download_url=('https://github.com/splitio/python-client/tarball/' + |
36 | | - __version__), |
37 | | - license='Apache License 2.0', |
38 | | - install_requires=install_requires, |
39 | | - tests_require=tests_require, |
40 | | - extras_require={ |
41 | | - 'test': tests_require, |
42 | | - 'redis': ['redis>=2.10.5'], |
43 | | - 'uwsgi': ['uwsgi>=2.0.0'], |
44 | | - 'cpphash': ['mmh3cffi>=0.1.4'] |
45 | | - }, |
46 | | - setup_requires=['pytest-runner'], |
47 | | - classifiers=[ |
48 | | - 'Development Status :: 3 - Alpha', |
49 | | - 'Environment :: Console', |
50 | | - 'Intended Audience :: Developers', |
51 | | - 'Programming Language :: Python', |
52 | | - 'Programming Language :: Python :: 2', |
53 | | - 'Programming Language :: Python :: 3', |
54 | | - 'Topic :: Software Development :: Libraries' |
55 | | - ], |
56 | | - packages=find_packages()) |
| 30 | +setup( |
| 31 | + name='splitio_client', |
| 32 | + version=__version__, # pylint: disable=undefined-variable |
| 33 | + description='Split.io Python Client', |
| 34 | + author='Patricio Echague, Sebastian Arrubia', |
| 35 | + author_email='pato@split.io, sebastian@split.io', |
| 36 | + url='https://github.com/splitio/python-client', |
| 37 | + download_url=('https://github.com/splitio/python-client/tarball/' + __version__), # pylint: disable=undefined-variable |
| 38 | + license='Apache License 2.0', |
| 39 | + install_requires=INSTALL_REQUIRES, |
| 40 | + tests_require=TESTS_REQUIRES, |
| 41 | + extras_require={ |
| 42 | + 'test': TESTS_REQUIRES, |
| 43 | + 'redis': ['redis>=2.10.5'], |
| 44 | + 'uwsgi': ['uwsgi>=2.0.0'], |
| 45 | + 'cpphash': ['mmh3cffi>=0.1.4'] |
| 46 | + }, |
| 47 | + setup_requires=['pytest-runner'], |
| 48 | + classifiers=[ |
| 49 | + 'Environment :: Console', |
| 50 | + 'Intended Audience :: Developers', |
| 51 | + 'Programming Language :: Python', |
| 52 | + 'Programming Language :: Python :: 2', |
| 53 | + 'Programming Language :: Python :: 3', |
| 54 | + 'Topic :: Software Development :: Libraries' |
| 55 | + ], |
| 56 | + packages=find_packages() |
| 57 | +) |
0 commit comments