Merge pull request #128 from python-hyper/tox-cleanup

Clean up the Tox config a bit more
This commit is contained in:
Mahmoud Hashemi 2020-04-17 00:42:25 -07:00 committed by GitHub
commit 86c7051f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 9 deletions

24
tox.ini
View File

@ -17,12 +17,6 @@ basepython = python3.8
deps =
idna==2.9
test: typing==3.7.4.1
test: {[testenv:coverage_report]deps}
test-{py26,py27,py34}: pytest==4.6.9
test-{py35,py36,py37,py38}: pytest==5.2.4
test: pytest-cov==2.8.1
setenv =
PY_MODULE=hyperlink
@ -50,15 +44,27 @@ basepython =
pypy2: pypy
pypy3: pypy3
deps = {[default]deps}
deps =
{[default]deps}
# In Python 2, we need to pull in typing
{py26,py27}: typing==3.7.4.1
# For pytest
{py26,py27,py34}: pytest==4.6.9
{py35,py36,py37,py38}: pytest==5.2.4
# For code coverage
{[testenv:coverage_report]deps}
pytest-cov==2.8.1
setenv =
{[default]setenv}
test: COVERAGE_FILE={toxworkdir}/coverage.{envname}
COVERAGE_FILE={toxworkdir}/coverage.{envname}
commands =
test: pytest --cov={env:PY_MODULE} --cov-report=term-missing:skip-covered --doctest-modules {posargs:src/{env:PY_MODULE}}
pytest --cov={env:PY_MODULE} --cov-report=term-missing:skip-covered --doctest-modules {posargs:src/{env:PY_MODULE}}
##