diff options
author | caoyuan <cao.yuan@99cloud.net> | 2019-12-22 23:50:45 +0800 |
---|---|---|
committer | Elod Illes <elod.illes@est.tech> | 2020-04-22 19:30:40 +0200 |
commit | c3c5aac8ff75f9bb9dc6228169a8c6936c5548e0 (patch) | |
tree | 33066854d43f5ba45e700662ed78e17a5359b5e3 | |
parent | 85cd57d1c5b7f1e046f831b9b1caa341b688cfb4 (diff) | |
download | oslo-utils-c3c5aac8ff75f9bb9dc6228169a8c6936c5548e0.tar.gz |
tox: Use upper-constraints for docs jobs
Conflicts:
tox.ini
Note(elod.illes): conflict is due to multiple python 2 removal and
tox.ini restructuring patches which are not needed to be backported to
Train. Upper constraint file link set to point to Train version of the
file.
Change-Id: I43225fc4ed3ba471ba7097f1e317bc6ffa777a46
(cherry picked from commit 8433aba4d6b5925fa8fb223d51a816ff541f1f2f)
-rw-r--r-- | tox.ini | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -27,10 +27,12 @@ commands = {posargs} [testenv:docs] basepython = python3 whitelist_externals = rm -deps = -r{toxinidir}/doc/requirements.txt +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/train} + -r{toxinidir}/doc/requirements.txt commands = - rm -fr doc/build - sphinx-build -W -b html doc/source doc/build/html + rm -fr doc/build + sphinx-build -W -b html doc/source doc/build/html [testenv:cover] basepython = python3 @@ -48,7 +50,8 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,__init__.py [testenv:releasenotes] basepython = python3 -deps = -r{toxinidir}/doc/requirements.txt +deps = + {[testenv:docs]deps} commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:lower-constraints] |