1616import os
1717from os .path import basename
1818from os .path import splitext
19+ import sys
1920
2021from setuptools import find_packages , setup
2122
@@ -28,6 +29,14 @@ def read_version():
2829 return read ('VERSION' ).strip ()
2930
3031
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+
3140setup (
3241 name = 'sagemaker_tensorflow_training' ,
3342 version = read_version (),
@@ -56,11 +65,7 @@ def read_version():
5665 install_requires = ['sagemaker-containers>=2.6.2' , 'numpy' , 'scipy' , 'sklearn' ,
5766 'pandas' , 'Pillow' , 'h5py' ],
5867 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' ]
6570 },
6671)
0 commit comments