api-site/tox.ini
Dr. Jens Harbott c891b09f56 Fix docs builds for current Ubuntu versions
Need to use python3. Update the readme accordingly.
Update tox.ini for current tox.

Change-Id: Ie225d08850507dab743b6e58474839a5d48a2f06
2024-11-01 08:51:24 +01:00

35 lines
754 B
INI

[tox]
minversion = 1.6
envlist = publishdocs
skipsdist = True
[testenv]
basepython = python3
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
allowlist_externals =
bash
mkdir
mv
rsync
{toxinidir}/tools/build-index.sh
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
{toxinidir}/tools/build-index.sh
[testenv:publishdocs]
deps = {[testenv:docs]deps}
# Prepare documents (without www) so that they can get published on
# developer.openstack.org with just copying publish-docs/api-ref over.
commands =
# Build website index
{toxinidir}/tools/build-index.sh