Follow the new PTI for document build

For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

In order to pass the requirements check, a new lower bound is set for the
'pyasn1' and 'requests' packages.

Change-Id: I1be4adb97fb3a37968afb9628fe3a7346cc55ccc
This commit is contained in:
Jesse Pretorius 2018-07-02 08:12:04 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 03fbbbf226
commit 6040d8dfe9
3 changed files with 16 additions and 11 deletions

10
doc/requirements.txt Normal file
View File

@ -0,0 +1,10 @@
# 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.
# this is required for the docs build jobs
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
openstackdocstheme>=1.18.1 # Apache-2.0
reno>=2.5.0 # Apache-2.0
sphinxmark>=0.1.14 # Apache-2.0
doc8>=0.6.0 # Apache-2.0

View File

@ -3,15 +3,7 @@
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
bashate>=0.2 # Apache-2.0 bashate>=0.2 # Apache-2.0
flake8<2.6.0,>=2.5.4 # MIT flake8<2.6.0,>=2.5.4 # MIT
pyasn1 # BSD pyasn1>=0.1.8 # BSD
pyOpenSSL>=0.14 # Apache-2.0 pyOpenSSL>=0.14 # Apache-2.0
requests!=2.12.2,!=2.13.0,>=2.10.0 # Apache-2.0 requests>=2.14.2 # Apache-2.0
ndg-httpsclient>=0.4.2;python_version<'3.0' # BSD ndg-httpsclient>=0.4.2;python_version<'3.0' # BSD
# this is required for the docs build jobs
sphinx!=1.6.1,>=1.5.1 # BSD
oslosphinx>=4.7.0 # Apache-2.0
openstackdocstheme>=1.5.0 # Apache-2.0
doc8 # Apache-2.0
reno>=1.8.0 # Apache-2.0
sphinxmark>=0.1.14 # Apache-2.0

View File

@ -31,10 +31,11 @@ setenv =
[testenv:docs] [testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt
commands= commands=
bash -c "rm -rf doc/build" bash -c "rm -rf doc/build"
doc8 doc doc8 doc
python setup.py build_sphinx sphinx-build -b html doc/source doc/build/html
[doc8] [doc8]
@ -43,6 +44,7 @@ extensions = .rst
[testenv:releasenotes] [testenv:releasenotes]
deps = -r{toxinidir}/doc/requirements.txt
commands = commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
@ -99,6 +101,7 @@ commands =
[testenv:linters] [testenv:linters]
deps = deps =
-r{toxinidir}/doc/requirements.txt
{[testenv:ansible]deps} {[testenv:ansible]deps}
commands = commands =
{[testenv:pep8]commands} {[testenv:pep8]commands}