Files
openstack-ansible-specs/tox.ini
Ivan Anfimov 84320c0de7 tox: Remove ineffective ignore_basepython_conflict and bump minimum version
Change-Id: Ie63a23999801c7e8be3de1183b097904ab5adfb8
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025-09-13 15:48:36 +00:00

53 lines
1.0 KiB
INI

[tox]
minversion = 4.6.0
skipsdist = True
envlist = docs
[testenv]
usedevelop = True
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
passenv =
HOME
USER
http_proxy
HTTP_PROXY
https_proxy
HTTPS_PROXY
no_proxy
NO_PROXY
allowlist_externals =
bash
setenv =
PYTHONUNBUFFERED=1
VIRTUAL_ENV={envdir}
[testenv:docs]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
bash -c "rm -rf doc/build"
doc8 doc
sphinx-build -W -b html doc/source doc/build/html
[testenv:pdf-docs]
deps = {[testenv:docs]deps}
allowlist_externals =
make
commands =
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[doc8]
# Settings for doc8:
extensions = .rst
# environment used by the -infra templated docs job
[testenv:venv]
commands =
{posargs}