From c4b92f8e8b4ea1a23beafe7d3f276281d8fe5bec Mon Sep 17 00:00:00 2001 From: Ajay Karpur Date: Wed, 6 May 2020 15:10:38 -0700 Subject: [PATCH 1/3] add coveragerc file --- .coveragerc_py37 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .coveragerc_py37 diff --git a/.coveragerc_py37 b/.coveragerc_py37 new file mode 100644 index 0000000..96bb72b --- /dev/null +++ b/.coveragerc_py37 @@ -0,0 +1,20 @@ +[run] +branch = True +timid = True + +[report] +exclude_lines = + pragma: no cover + pragma: py3 no cover + if six.PY2 + elif six.PY2 + +partial_branches = + pragma: no cover + pragma: py3 no cover + if six.PY3 + elif six.PY3 + +show_missing = True + +fail_under = 90 From 0f897936430f6f15f86b91aebace9249ff421a9b Mon Sep 17 00:00:00 2001 From: Ajay Karpur Date: Thu, 7 May 2020 13:06:46 -0700 Subject: [PATCH 2/3] test against py37 and parallelize unit tests --- buildspec-release.yml | 2 +- buildspec.yml | 2 +- setup.py | 1 + tox.ini | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/buildspec-release.yml b/buildspec-release.yml index 70bd26b..2e53f85 100644 --- a/buildspec-release.yml +++ b/buildspec-release.yml @@ -17,7 +17,7 @@ phases: - tox -e black-check # run unit tests - - tox -e py36,py27 -- test/unit + - tox -e py27,py36,py37 --parallel all -- test/unit # build dummy container - python3 setup.py sdist diff --git a/buildspec.yml b/buildspec.yml index 12121b1..1b4e653 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -15,7 +15,7 @@ phases: - tox -e twine # run unit tests - - tox -e py36,py27 -- test/unit + - tox -e py27,py36,py37 --parallel all -- test/unit # build dummy container - python setup.py sdist diff --git a/setup.py b/setup.py index 603bc8f..915d50d 100644 --- a/setup.py +++ b/setup.py @@ -58,6 +58,7 @@ def read_version(): "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", ], install_requires=required_packages, extras_require={ diff --git a/tox.ini b/tox.ini index 2af0791..df1932c 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = black-format,flake8,pylint,twine,py27,py36 +envlist = black-format,flake8,pylint,twine,py27,py36,py37 skip_missing_interpreters = False From 5e0a69c682ed134781e7e18fe3e34a3fb9a61511 Mon Sep 17 00:00:00 2001 From: Ajay Karpur Date: Thu, 7 May 2020 13:13:22 -0700 Subject: [PATCH 3/3] run integ tests against py37 --- buildspec-release.yml | 2 +- buildspec.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buildspec-release.yml b/buildspec-release.yml index 2e53f85..18474a1 100644 --- a/buildspec-release.yml +++ b/buildspec-release.yml @@ -32,7 +32,7 @@ phases: - cd ../.. # run local integration tests - - IGNORE_COVERAGE=- tox -e py36,py27 -- test/integration/local + - IGNORE_COVERAGE=- tox -e py27,py36,py37 -- test/integration/local # publish the release to github - git-release --publish diff --git a/buildspec.yml b/buildspec.yml index 1b4e653..8f8ea69 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -30,4 +30,4 @@ phases: - cd ../.. # run local integration tests - - IGNORE_COVERAGE=- tox -e py36,py27 -- test/integration/local + - IGNORE_COVERAGE=- tox -e py27,py36,py37 -- test/integration/local