16
16
import os
17
17
from os .path import basename
18
18
from os .path import splitext
19
+ import sys
19
20
20
21
from setuptools import find_packages , setup
21
22
@@ -28,6 +29,14 @@ def read_version():
28
29
return read ('VERSION' ).strip ()
29
30
30
31
32
+ test_dependencies = ['tox' , 'flake8' , 'pytest' , 'pytest-cov' , 'pytest-xdist' , 'mock' ,
33
+ 'sagemaker==1.50.1' , 'tensorflow<2.0' , 'docker-compose' , 'boto3==1.10.50' ,
34
+ 'six==1.13.0' , 'python-dateutil>=2.1,<2.8.1' , 'botocore==1.13.50' ,
35
+ 'requests-mock' , 'awscli==1.16.314' ]
36
+
37
+ if sys .version_info .major > 2 :
38
+ test_dependencies .append ('sagemaker-experiments==0.1.7' )
39
+
31
40
setup (
32
41
name = 'sagemaker_tensorflow_training' ,
33
42
version = read_version (),
@@ -56,11 +65,7 @@ def read_version():
56
65
install_requires = ['sagemaker-containers>=2.6.2' , 'numpy' , 'scipy' , 'sklearn' ,
57
66
'pandas' , 'Pillow' , 'h5py' ],
58
67
extras_require = {
59
- 'test' : ['tox' , 'flake8' , 'pytest' , 'pytest-cov' , 'pytest-xdist' , 'mock' ,
60
- 'sagemaker==1.50.1' , 'tensorflow<2.0' , 'docker-compose' , 'boto3==1.10.50' ,
61
- 'six==1.13.0' , 'python-dateutil>=2.1,<2.8.1' , 'botocore==1.13.50' ,
62
- 'requests-mock' , 'awscli==1.16.314' ],
63
- 'benchmark' : ['click' ],
64
- ':python_version=="3.6"' : ['sagemaker-experiments==0.1.7' ]
68
+ 'test' : test_dependencies ,
69
+ 'benchmark' : ['click' ]
65
70
},
66
71
)
0 commit comments