Fix the docs job

Related to https://lists.openstack.org/pipermail/openstack-discuss/2023-February/032247.html

Change-Id: I2981285fe29790737431b1083979388c02938a67
This commit is contained in:
Hervé Beraud 2023-02-17 10:18:50 +01:00 committed by Hervé Beraud
parent 926dd4d981
commit 7696282cb5
1 changed files with 2 additions and 4 deletions

View File

@ -1,10 +1,8 @@
[tox]
minversion = 3.2.0
envlist = py3,pep8
ignore_basepython_conflict = true
[testenv]
basepython = python3
# TODO(damani): Drop distutils override once logging improves in setuptools
# https://github.com/pypa/setuptools/issues/3038
setenv =
@ -36,7 +34,7 @@ commands = {posargs}
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
whitelist_externals = rm
allowlist_externals = rm
commands =
rm -fr doc/build
sphinx-build -W --keep-going -b html doc/source doc/build/html
@ -65,7 +63,7 @@ import_exceptions =
[testenv:releasenotes]
envdir = {toxworkdir}/docs
whitelist_externals = rm
allowlist_externals = rm
deps = {[testenv:docs]deps}
commands =
rm -rf releasenotes/build