Skip to content

Commit 759d81f

Browse files
committed
Merge branch 'bug/enum34InPy34' of github.com:splitio/python-client into bug/enum34InPy34
2 parents a62785b + 28e9064 commit 759d81f

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

setup.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,25 @@
33

44
from setuptools import setup, find_packages
55
from os import path
6-
from sys import version_info
76

8-
tests_require = ['flake8', 'pytest', 'pytest-mock', 'coverage', 'pytest-cov']
7+
tests_require = [
8+
'flake8',
9+
'pytest',
10+
'pytest-mock',
11+
'coverage',
12+
'pytest-cov',
13+
'mock;python_version<"3"'
14+
]
915
install_requires = [
1016
'requests>=2.9.1',
1117
'pyyaml>=5.1',
1218
'future>=0.15.2',
1319
'docopt>=0.6.2',
20+
'enum34;python_version<"3.4"',
21+
'six>=1.10.0;python_version<"3"',
22+
'futures>=3.0.5;python_version<"3"'
1423
]
1524

16-
if version_info < (3,):
17-
tests_require += ['mock']
18-
install_requires += ['six>=1.10.0', 'futures>=3.0.5', 'enum34>=1.1.5']
19-
2025
with open(path.join(path.abspath(path.dirname(__file__)),
2126
'splitio', 'version.py')) as f:
2227
exec(f.read())

0 commit comments

Comments
 (0)