
Using openstack-python3-jobs will allow this to seamlessly move forward with the python version, which currently should be py39 and py312. Removed the py38 override as it will not be used any more, and for reference, the template does contain a similar irrelevant-files line so that is not lost. TrivialFix Change-Id: Ieffe3581dfa444ae5d014d4b499c3ee7694e7e57
32 lines
886 B
INI
32 lines
886 B
INI
[tox]
|
|
minversion = 3.18.0
|
|
envlist = docs,py3,pep8
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = {env:TOX_PYTHON:python3}
|
|
usedevelop = True
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
|
|
OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true}
|
|
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
|
|
# Unit test requires docutils and it is recommended to install docutils via
|
|
# sphinx. We use doc/requirements.txt as well to avoid duplicated entries.
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
allowlist_externals = rm
|
|
deps =
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
rm -fr doc/build/
|
|
sphinx-build -W -b html doc/source doc/build/html
|