Fix docs reqs for new pip
Per [1], the docs requirements were failing (or at least could) due to
test-requirements being used instead of doc/requirements. The former
may include dep versions not compatible with the upper-constraints and
hence cause issues for the new pip resolver. This patch fixes that.
[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
Change-Id: Ifcf59e49b00e9b468b59f53de53c417a0e84adc4
Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
diff --git a/tox.ini b/tox.ini
index b7f3098..f1581bc 100644
--- a/tox.ini
+++ b/tox.ini
@@ -35,11 +35,19 @@
[testenv:pep8]
commands = sh tools/pretty_flake8.sh
-
[testenv:docs]
+deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+ -r{toxinidir}/doc/requirements.txt
commands = rm -rf doc/build
sphinx-build -E -W -b html doc/source doc/build/html
+[testenv:releasenotes]
+deps = {[testenv:docs]deps}
+whitelist_externals = rm
+commands =
+ rm -rf releasenotes/build
+ sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
+
[testenv:bashate]
deps = bashate
whitelist_externals = bash