Riccardo Pittau 43398c0c47 Update tox config
Update tox min version to something more contemporary.
Default basepython to python3.
Update dependencies of docs and pdf-docs to include upper-constraints.
Move to stestrs and remote os-test from requirements.

Change-Id: I30313dda1a3f56eff2f54632c46cfbdd03aa3cb7
2021-05-12 17:31:27 +02:00

38 lines
875 B
INI

[tox]
minversion = 3.9.0
envlist = linters,docs
skipsdist = true
ignore_basepython_conflict = true
[testenv]
usedevelop = True
basepython = python3
setenv =
VIRTUAL_ENV={envdir}
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
stestr run {posargs}
doc8 priorities/ specs/ doc/source README.rst
[testenv:venv]
commands = {posargs:}
[testenv:docs]
sitepackages = False
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
commands =
sphinx-build -b html doc/source doc/build/html
[testenv:pdf-docs]
whitelist_externals = make
sitepackages = False
deps = {[testenv:docs]deps}
commands =
sphinx-build -b latex doc/source doc/build/pdf
make -C doc/build/pdf