Fix the docs job

This change fixes the docs job to ensure we have access to development
versions of tripleo-common. This is being done because we have more
modules coming in which are using tripleo-common which may require
unreleased versions of the package when running tests. This change
adds tripleo-common as an upstream constraint which is only used in
the docs and molecule test scenarios.

Change-Id: Ib64307defe4d5a0e06ad862ab9f51d1da3d23312
Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
Kevin Carter 2020-03-19 09:50:55 -05:00 committed by Kevin Carter (cloudnull)
parent 9ac51dc172
commit 3100780e1e
3 changed files with 8 additions and 1 deletions

1
constraints.txt Normal file
View File

@ -0,0 +1 @@
-e git+https://github.com/openstack/tripleo-common@master#egg=tripleo-common

View File

@ -22,3 +22,6 @@ doc8>=0.8.0 # Apache-2.0
bashate>=0.6.0 # Apache-2.0
metalsmith>=0.13.0 # Apache-2.0
jsonschema # MIT
# Upstream requirements from constraints.txt
tripleo-common

View File

@ -61,7 +61,9 @@ commands =
[testenv:releasenotes]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
deps =
-r {toxinidir}/doc/requirements.txt
-c {toxinidir}/constraints.txt
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
@ -69,6 +71,7 @@ commands =
basepython = python3
deps =
-r {toxinidir}/doc/requirements.txt
-c {toxinidir}/constraints.txt
commands=
doc8 doc
sphinx-build -a -E -W -d doc/build/doctrees --keep-going -b html doc/source doc/build/html -T