Skip to content

Commit 6d6d358

Browse files
authored
feature: add Python 3.7 support (#204)
* update setup.py with latest version of sagemaker-training * test against py37 and parallelize unit tests * remove parallelization
1 parent b2473aa commit 6d6d358

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

buildspec-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ phases:
1212
# run unit tests
1313
- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
1414
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
15-
tox -e py27,py36 -- test-toolkit/unit
15+
tox -e py27,py36,py37 -- test-toolkit/unit
1616

1717
# run local integ tests
1818
#- $(aws ecr get-login --no-include-email --region us-west-2)

buildspec-toolkit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ phases:
3333
- tox -e flake8,twine
3434

3535
# run unit tests
36-
- tox -e py36,py27 test-toolkit/unit
36+
- tox -e py27,py36,py37 test-toolkit/unit
3737

3838
# define tags
3939
- GENERIC_TAG="$FRAMEWORK_VERSION-pytorch-$BUILD_ID"

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ def read(fname):
5454
"Programming Language :: Python",
5555
'Programming Language :: Python :: 2.7',
5656
'Programming Language :: Python :: 3.6',
57+
'Programming Language :: Python :: 3.7',
5758
],
5859

5960
install_requires=[
6061
'retrying',
61-
'sagemaker-training>=3.4.2',
62+
'sagemaker-training>=3.5.0',
6263
'six>=1.12.0',
6364
'sagemaker-experiments==0.1.7;python_version>="3.6"'],
6465
extras_require={

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = flake8,twine,py27,py36
7+
envlist = flake8,twine,py27,py36,py37
88
skip_missing_interpreters = False
99

1010
[flake8]

0 commit comments

Comments
 (0)