Split doc requirements into their own file

We don't need sphinx in the test virtualenvs, but we do need it for
docs.

Change-Id: I8ae98d08090e2e391ba725ddd5ff0125a03c8d47
Depends-On: Ie0c9f24df09255e871f904e079b68809144b36b4
This commit is contained in:
Monty Taylor 2017-12-18 13:54:23 -06:00
parent 85116fcc7e
commit 853dbddc22
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
3 changed files with 7 additions and 4 deletions

2
doc/requirements.txt Normal file
View File

@ -0,0 +1,2 @@
sphinx>=1.6.2 # BSD
openstackdocstheme>=1.17.0 # Apache-2.0

View File

@ -9,8 +9,6 @@ oslo.config>=4.6.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
python-subunit>=1.0.0 # Apache-2.0/BSD
requests-mock>=1.1.0 # Apache-2.0
sphinx>=1.6.2 # BSD
testrepository>=0.0.18 # Apache-2.0/BSD
openstackdocstheme>=1.17.0 # Apache-2.0
reno>=2.5.0 # Apache-2.0
tempest>=17.1.0 # Apache-2.0

View File

@ -25,8 +25,11 @@ commands =
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:docs]
commands = rm -rf doc/build
python setup.py build_sphinx
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html doc/source doc/build/html
[testenv:flake8]
commands = flake8