Add support for new doc PTI jobs

Implement optional cleanup to support the new PTI jobs
for documentation which won't use tox anymore.

Docs tox environment will still available for developers but
it is no loger used in the gate to construct the documentation.

See http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ib4a380eec3c9f286dc563f2b81c6b27f92467cf3
This commit is contained in:
Luz Cazares 2017-12-18 15:46:17 -08:00
parent 28fc0a0551
commit b041333bc7
3 changed files with 4 additions and 3 deletions

2
doc/requirements.txt Normal file
View File

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

View File

@ -3,7 +3,6 @@ pep8==1.5.7
pyflakes==0.8.1 pyflakes==0.8.1
flake8==2.2.4 flake8==2.2.4
docutils>=0.11 # OSI-Approved Open Source, Public Domain docutils>=0.11 # OSI-Approved Open Source, Public Domain
sphinx>=1.6.2
httmock>=1.2.4 httmock>=1.2.4
mock mock
oslotest>=1.2.0 # Apache-2.0 oslotest>=1.2.0 # Apache-2.0
@ -12,4 +11,3 @@ testrepository>=0.0.18
testtools>=0.9.34 testtools>=0.9.34
pep257>=0.5.0 pep257>=0.5.0
PyMySQL>=0.6.2,!=0.6.4 PyMySQL>=0.6.2,!=0.6.4
openstackdocstheme>=1.11.0 # Apache-2.0

View File

@ -64,7 +64,8 @@ commands = python setup.py testr --coverage \
commands = {toxinidir}/tools/cover.sh {posargs} commands = {toxinidir}/tools/cover.sh {posargs}
[testenv:docs] [testenv:docs]
commands = python setup.py build_sphinx {posargs} deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html doc/source doc/build/html
[flake8] [flake8]
# E125 continuation line does not distinguish itself from next logical line # E125 continuation line does not distinguish itself from next logical line