Move doc related modules to doc/requirements.txt

Change-Id: I5106dc365856932f00a2fbdf4e7a4d58e48cca8a
This commit is contained in:
jacky06 2019-01-04 23:25:43 +08:00
parent 33a089b099
commit 9e3400fa9c
4 changed files with 14 additions and 15 deletions

8
doc/requirements.txt Normal file
View File

@ -0,0 +1,8 @@
# 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.
openstackdocstheme>=1.18.1 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
reno>=2.5.0 # Apache-2.0

View File

@ -56,9 +56,3 @@ Table of Contents
developer/index developer/index
elements elements
specs/README specs/README
.. # just link this on the dev page
.. toctree::
:hidden:
api/autoindex

View File

@ -12,12 +12,4 @@ oslotest>=3.2.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD testrepository>=0.0.18 # Apache-2.0/BSD
testtools>=2.2.0 # MIT testtools>=2.2.0 # MIT
# Doc requirements
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
openstackdocstheme>=1.18.1 # Apache-2.0
# releasenotes
reno>=2.5.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0

View File

@ -8,6 +8,7 @@ usedevelop = True
install_command = pip install {opts} {packages} install_command = pip install {opts} {packages}
deps= deps=
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
commands= commands=
@ -46,7 +47,11 @@ commands = python setup.py test --coverage --coverage-package-name diskimage_bui
[testenv:docs] [testenv:docs]
basepython = python3 basepython = python3
commands = python setup.py build_sphinx whitelist_externals =
rm
commands =
rm -rf doc/build
sphinx-build -W -b html doc/source doc/build/html {posargs}
[testenv:releasenotes] [testenv:releasenotes]
basepython = python3 basepython = python3