tripleo-docs/tox.ini
rabi 62518a75e5 Remove tox skipdist=True
This does not work with latest tox 4.x.
Also makes changes to make tox.ini latest tox
compatible.

Closes-Bug: #2000357
Change-Id: I76666a3931b542e0859be58ae0426cd5f36fb347
2022-12-26 10:03:32 +05:30

36 lines
888 B
INI

[tox]
minversion = 3.18.0
envlist = docs,deploy-guide
[testenv]
basepython = python3
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -a -E -W -d doc/build/doctrees --keep-going -b html doc/source doc/build/html
[testenv:pdf-docs]
allowlist_externals =
make
description =
Build PDF documentation.
envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
commands =
sphinx-build --keep-going -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:deploy-guide]
deps = {[testenv:docs]deps}
commands = sphinx-build -a -E -W -d deploy-guide/build/doctrees --keep-going -b html deploy-guide/source deploy-guide/build/html