1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
[tox]
minversion = 3.1.1
skipsdist = True
envlist = pep8,py39,py310,py311,py312,py313,py314,pypy3,docs,py314-prefix,py314-limit,py314-verbosity,py314-failskip,py39-pytest,py310-pytest,py311-pytest,py312-pytest,py313-pytest,py314-pytest
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
allowlist_externals = rm
usedevelop = True
install_command = pip install --no-cache -U {opts} {packages}
commands =
stestr run {posargs}
setenv = GABBI_PREFIX=
passenv = GABBI_*, HOME
[testenv:venv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = {posargs}
[testenv:py39-pytest]
commands = py.test gabbi
[testenv:py310-pytest]
commands = py.test gabbi
[testenv:py311-pytest]
commands = py.test gabbi
[testenv:py312-pytest]
commands = py.test gabbi
[testenv:py313-pytest]
commands = py.test {posargs} gabbi
[testenv:py314-pytest]
commands = py.test {posargs} gabbi
[testenv:py313-prefix]
setenv = GABBI_PREFIX=/snoopy
[testenv:pep8]
basepython = python3
deps = hacking
commands =
flake8
[testenv:py314-limit]
allowlist_externals = {toxinidir}/test-limit.sh
commands = {toxinidir}/test-limit.sh
[testenv:py314-verbosity]
allowlist_externals = {toxinidir}/test-verbosity.sh
commands = {toxinidir}/test-verbosity.sh
[testenv:py314-failskip]
allowlist_externals = {toxinidir}/test-failskip.sh
commands = {toxinidir}/test-failskip.sh
# Use pytest when in pypy3 because stestr fails on loading readline.
[testenv:pypy3]
commands = py.test gabbi
[testenv:cover]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --source gabbi --parallel-mode
commands =
coverage erase
find . -type f -name "*.pyc" -delete
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:pytest-cov]
basepython = python3
commands = py.test --cov=gabbi gabbi/tests --cov-config .coveragerc --cov-report html
[testenv:docs]
commands =
rm -rf docs/build
sphinx-build docs/source docs/build
deps = sphinx
allowlist_externals =
rm
[flake8]
exclude=.venv,.git,.tox,dist,*egg,*.egg-info,build,examples,docs
show-source = True
|