Skip to content

Commit

Permalink
Add support for Python 3.8
Browse files Browse the repository at this point in the history
Change-Id: I4f8d100f5289328a9b757447ffe8cc478119510e
  • Loading branch information
volans- committed Sep 11, 2020
1 parent 6d16ec2 commit abde451
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
9 changes: 5 additions & 4 deletions doc/source/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,22 @@ To run one specific environment only:

.. code-block:: bash
tox -e flake8
tox -e py38-flake8
It's possible to pass extra arguments to the underlying environment:

.. code-block:: bash
# Run only tests in a specific file:
tox -e unit -- -k test_puppetdb.py
tox -e py38-unit -- -k test_puppetdb.py
# Run only one specific test:
tox -e unit -- -k test_invalid_grammars
tox -e py38-unit -- -k test_invalid_grammars
Integration tests are also available, but are not run by default by tox. They depends on a running Docker instance.
To run them:

.. code-block:: bash
tox -e integration
tox -e py38-integration
tox -e py38-integration-min
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
'Operating System :: POSIX :: BSD',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Clustering',
Expand Down
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 3.0.0
envlist = py{37}-{flake8,unit,unit-min,unitbase,bandit,prospector,sphinx,man,man-min}
envlist = py{37,38}-{flake8,unit,unit-min,unitbase,bandit,prospector,sphinx,man,man-min}
skip_missing_interpreters = True

[testenv]
Expand All @@ -19,10 +19,14 @@ description =
man: Build the man page
min: [minimum supported version of dependencies]
py37: (Python 3.7)
py38: (Python 3.8)
envdir =
py37-unitbase: {toxworkdir}/py37-tests-base
py37-min: {toxworkdir}/py37-tests-min
py37-!unitbase-!min: {toxworkdir}/py37-tests
py38-unitbase: {toxworkdir}/py38-tests-base
py38-min: {toxworkdir}/py38-tests-min
py38-!unitbase-!min: {toxworkdir}/py38-tests
commands =
flake8: flake8 setup.py cumin doc
unit: py.test -p no:logging --strict --cov-report=term-missing --cov=cumin cumin/tests/unit {posargs}
Expand Down Expand Up @@ -51,6 +55,8 @@ setenv =
# Needed it until https://github.com/tox-dev/tox/issues/505 is resolved
[testenv:py37-integration]
[testenv:py37-integration-min]
[testenv:py38-integration]
[testenv:py38-integration-min]

[flake8]
max-line-length = 120
Expand Down

0 comments on commit abde451

Please sign in to comment.