From eb4fcd7bf04d768476995310150f74360faa5cc2 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Thu, 26 Mar 2020 10:15:07 -0500 Subject: [PATCH] Use doc-only requirements Doc requirements are not needed for unit test runs. This moves doc requirements into the recommended doc/requirements.txt location and updates the tox target to pull from there. Change-Id: I06761a6090d64ae1be5065727f7f56ede14c8d13 Signed-off-by: Sean McGinnis --- doc/requirements.txt | 6 ++++++ test-requirements.txt | 2 -- tox.ini | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 doc/requirements.txt diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 00000000..43a43787 --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,6 @@ +# The order of packages is significant, because pip processes them in the order +# of appearance. Changing the order has an impact on the overall integration +# process, which may cause wedges in the gate later. +# needed for doc build +sphinx>=1.6.2 # BSD +openstackdocstheme>=1.25.1 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index 122289c4..ad281220 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,8 +2,6 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. # needed for doc build -sphinx>=1.6.2 # BSD -openstackdocstheme>=1.25.1 # Apache-2.0 hacking<0.12,>=0.11.0 # Apache-2.0 yamllint mock>=2.0.0 # BSD diff --git a/tox.ini b/tox.ini index cf0faf32..0ec50b19 100644 --- a/tox.ini +++ b/tox.ini @@ -24,6 +24,10 @@ commands = yamllint configuration.yaml commands = {posargs} [testenv:docs] +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -r{toxinidir}/requirements.txt + -r{toxinidir}/doc/requirements.txt commands = sphinx-build -v -W -b html -d doc/build/doctrees doc/source doc/build/html [testenv:ci-checks-review]