Skip to content

Commit 5ab7f76

Browse files
committed
fix pytest version to keep compatibility with py<=3.4
1 parent 00994ef commit 5ab7f76

File tree

1 file changed

+35
-34
lines changed

1 file changed

+35
-34
lines changed

setup.py

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,57 @@
11
"""Setup module."""
22
#!/usr/bin/env python
33

4-
from setuptools import setup, find_packages
54
from os import path
5+
from setuptools import setup, find_packages
66

7-
tests_require = [
7+
TESTS_REQUIRES = [
88
'flake8',
9-
'pytest',
9+
'pytest<=4.6', # for deprecated python versions: https://docs.pytest.org/en/latest/py27-py34-deprecation.html
1010
'pytest-mock',
1111
'coverage',
1212
'pytest-cov',
1313
'mock;python_version<"3"'
1414
]
15-
install_requires = [
15+
16+
INSTALL_REQUIRES = [
1617
'requests>=2.9.1',
1718
'pyyaml>=5.1',
1819
'future>=0.15.2',
1920
'docopt>=0.6.2',
21+
'six>=1.10.0',
2022
'enum34;python_version<"3.4"',
21-
'six>=1.10.0;python_version<"3"',
2223
'futures>=3.0.5;python_version<"3"'
2324
]
2425

2526
with open(path.join(path.abspath(path.dirname(__file__)),
2627
'splitio', 'version.py')) as f:
27-
exec(f.read())
28+
exec(f.read()) # pylint: disable=exec-used
2829

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

Comments
 (0)