# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27, py36, py37, py38, py39, purepy27, purepy38, py27-no-gpg, py38-no-gpg
skipsdist = True

[testenv]
install_command =
    pip install --pre {opts} {packages}

deps =
    -r{toxinidir}/requirements-pinned.txt
    -r{toxinidir}/requirements-test.txt

commands =
    coverage run tests/aggregate_tests.py
    coverage report -m --fail-under 97

[testenv:purepy27]
deps =
    -r{toxinidir}/requirements-min.txt
    -r{toxinidir}/requirements-test.txt

commands =
    python -m tests.check_public_interfaces

[testenv:purepy38]
deps =
    -r{toxinidir}/requirements-min.txt

commands =
    python -m tests.check_public_interfaces

[testenv:py27-no-gpg]
setenv =
    GNUPG = nonexisting-gpg-for-testing
commands =
    python -m tests.check_public_interfaces_gpg

[testenv:py38-no-gpg]
setenv =
    GNUPG = nonexisting-gpg-for-testing
commands =
    python -m tests.check_public_interfaces_gpg

# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py36, py37, py38, py39, purepy38, py38-no-gpg
skipsdist = True

[testenv]
install_command =
    pip install --pre {opts} {packages}

deps =
    -r{toxinidir}/requirements-pinned.txt
    -r{toxinidir}/requirements-test.txt

commands =
    coverage run tests/aggregate_tests.py
    coverage report -m --fail-under 97

[testenv:purepy38]
deps =
    -r{toxinidir}/requirements-min.txt

commands =
    python -m tests.check_public_interfaces

[testenv:py38-no-gpg]
setenv =
    GNUPG = nonexisting-gpg-for-testing
commands =
    python -m tests.check_public_interfaces_gpg

Drop Python 2.7 from test automation
Drop Python 2.7 from test automation

We do not need to include Python 2.7 versions of our tox environments any
more.

Signed-off-by: Joshua Lock <edc229f50a11a11cdece0270af6320fb299dca1e@vmware.com>
