vitrage-specs/tox.ini
wu.shiming a29e691e6c Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I24b41e47ba5b7d6094c05c338dbd1e4206d10f5c
2021-09-18 11:52:41 +08:00

32 lines
787 B
INI

[tox]
minversion = 3.18.0
envlist = docs,py3
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/requirements.txt
commands = sphinx-build -W -E -b html -d doc/build/doctrees doc/source doc/build/html
[testenv:doc8]
deps = -r{toxinidir}/requirements.txt doc8
commands = doc8 doc/source
[testenv:autobuild]
allowlist_externals =
sphinx-autobuild
commands =
sphinx-autobuild --watch specs --open-browser doc/source doc/build