From 010a1f9219fbaa836c19c4dfa2017edccf7fea76 Mon Sep 17 00:00:00 2001 From: zhoulinhui Date: Wed, 9 Sep 2020 23:45:53 +0800 Subject: [PATCH] Stop install unnecessary packages when run tox -e releasenotes requirements.txt is unnecessary when run tox -e releasenotes, releasenotes relative stuffs is in doc/requirements.txt, this ps to remove the requirements.txt from tox.ini and reuse [docs] deps Change-Id: Ia6c51f9ffe1257f16e9bd55fe21cc832b634cbf3 --- tox.ini | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tox.ini b/tox.ini index 1840788235..c1e5537ad1 100644 --- a/tox.ini +++ b/tox.ini @@ -52,9 +52,7 @@ commands = sphinx-build -W --keep-going -b html doc/source doc/build/html [testenv:deploy-guide] -deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} - -r{toxinidir}/doc/requirements.txt +deps = {[testenv:docs]deps} commands = rm -rf deploy-guide/build sphinx-build -a -E -W -d deploy-guide/build/doctrees --keep-going -b html deploy-guide/source deploy-guide/build/html @@ -67,10 +65,7 @@ commands = make -C doc/build/pdf [testenv:releasenotes] -deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} - -r{toxinidir}/requirements.txt - -r{toxinidir}/doc/requirements.txt +deps = {[testenv:docs]deps} commands = rm -rf releasenotes/build sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html