
Small but overdue fix for Tox v4 support, switch to newer Hacking so that we can test on more recent Python versions, and update the Trove classifiers to indicate the newer jobs we're running. Also drop Python 2.7 from the envlist since we stopped supporting it previously, and do the same for nox for symmetry. Remove python-dev-all from the sample bindep.txt used for testing, since that package no longer exists on Noble. Clean up a missed Python 2.7 workaround in setup.py as well. Note that while we're not yet testing with Python 3.13, I ran unit tests on it locally and everything seems to be working. Change-Id: Ifdd15e06269b0768ef2cb6c75894dbfcdbba7a4e
43 lines
844 B
INI
43 lines
844 B
INI
[tox]
|
|
min_version = 3.1
|
|
envlist = py3,pep8
|
|
ignore_basepython_conflict=true
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
basepython = python3
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
stestr run {posargs}
|
|
stestr slowest
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps =
|
|
hacking>=7,<8
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
setenv =
|
|
{[testenv]setenv}
|
|
PYTHON=coverage run --source bindep --parallel-mode
|
|
commands =
|
|
stestr run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
|