Skip to content

Commit 46325ee

Browse files
authored
feature: Python 3.7 support (#362)
* infra: Test against py37 in unit tests * infra: Add py37 coverage file
1 parent b11af98 commit 46325ee

File tree

6 files changed

+25
-4
lines changed

6 files changed

+25
-4
lines changed

.coveragerc_py37

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[run]
2+
branch = True
3+
timid = True
4+
5+
[report]
6+
exclude_lines =
7+
pragma: no cover
8+
pragma: py3 no cover
9+
if six.PY2
10+
elif six.PY2
11+
12+
partial_branches =
13+
pragma: no cover
14+
pragma: py3 no cover
15+
if six.PY3
16+
elif six.PY3
17+
18+
show_missing = True
19+
20+
fail_under = 90

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/unit
15+
tox -e py27,py36,p37 --parallel all -- test/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
@@ -30,7 +30,7 @@ phases:
3030
- tox -e flake8,twine
3131

3232
# run unit tests
33-
- tox -e py36,py27 test-toolkit/unit
33+
- tox -e py27,py36,py37 --parallel all test-toolkit/unit
3434

3535
# define tags
3636
- GENERIC_TAG="$FRAMEWORK_VERSION-tensorflow-$BUILD_ID"

buildspec-unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ phases:
55
commands:
66
- pip install --upgrade pip --quiet
77
- pip install tox --quiet
8-
- tox -e ${TOX_ENVLIST} -- test/unit
8+
- tox -e ${TOX_ENVLIST} --parallel all -- test/unit

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def read_version():
6060
"Programming Language :: Python",
6161
'Programming Language :: Python :: 2.7',
6262
'Programming Language :: Python :: 3.6',
63+
'Programming Language :: Python :: 3.7',
6364
],
6465

6566
install_requires=['sagemaker-training>=3.5.0', 'numpy', 'scipy', 'sklearn',

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 = py27,py36,flake8
7+
envlist = py27,py36,py37,flake8
88
skip_missing_interpreters = False
99

1010
[travis]

0 commit comments

Comments
 (0)