Skip to content

Commit 23c1f7c

Browse files
authored
feature: Add Python 3.7 support (#47)
* add coveragerc file * test against py37 and parallelize unit tests * run integ tests against py37
1 parent a5b8c4d commit 23c1f7c

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ phases:
1717
- tox -e black-check
1818

1919
# run unit tests
20-
- tox -e py36,py27 -- test/unit
20+
- tox -e py27,py36,py37 --parallel all -- test/unit
2121

2222
# build dummy container
2323
- python3 setup.py sdist
@@ -32,7 +32,7 @@ phases:
3232
- cd ../..
3333

3434
# run local integration tests
35-
- IGNORE_COVERAGE=- tox -e py36,py27 -- test/integration/local
35+
- IGNORE_COVERAGE=- tox -e py27,py36,py37 -- test/integration/local
3636

3737
# publish the release to github
3838
- git-release --publish

buildspec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ phases:
1515
- tox -e twine
1616

1717
# run unit tests
18-
- tox -e py36,py27 -- test/unit
18+
- tox -e py27,py36,py37 --parallel all -- test/unit
1919

2020
# build dummy container
2121
- python setup.py sdist
@@ -30,4 +30,4 @@ phases:
3030
- cd ../..
3131

3232
# run local integration tests
33-
- IGNORE_COVERAGE=- tox -e py36,py27 -- test/integration/local
33+
- IGNORE_COVERAGE=- tox -e py27,py36,py37 -- test/integration/local

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def read_version():
5858
"Programming Language :: Python",
5959
"Programming Language :: Python :: 2.7",
6060
"Programming Language :: Python :: 3.6",
61+
"Programming Language :: Python :: 3.7",
6162
],
6263
install_requires=required_packages,
6364
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 = black-format,flake8,pylint,twine,py27,py36
7+
envlist = black-format,flake8,pylint,twine,py27,py36,py37
88

99
skip_missing_interpreters = False
1010

0 commit comments

Comments
 (0)