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

Change-Id: Ib36e24d0b38356790993fec24b8280464645bd29
This commit is contained in:
Nguyen Van Trung 2018-07-09 14:29:08 +07:00
parent 599e988d85
commit 880d7122b8
5 changed files with 5 additions and 14 deletions

3
doc/requirements.txt Normal file
View File

@ -0,0 +1,3 @@
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

View File

@ -6,5 +6,5 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0
six>=1.10.0 # MIT
monotonic>=0.6 # Apache-2.0
futures>=3.0.0;python_version=='2.7' or python_version=='2.6' # BSD
contextlib2>=0.4.0 # PSF License
contextlib2>=0.4.0;python_version<'3.0' # PSF License
PrettyTable<0.8,>=0.7.1 # BSD

View File

@ -22,15 +22,6 @@ classifier =
packages =
futurist
[build_sphinx]
source-dir = doc/source
build-dir = doc/build
all_files = 1
warning-is-error = 1
[upload_sphinx]
upload-dir = doc/build/html
[compile_catalog]
directory = futurist/locale
domain = futurist

View File

@ -10,10 +10,7 @@ eventlet!=0.18.3,!=0.20.1,>=0.18.2 # MIT
doc8>=0.6.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
python-subunit>=1.0.0 # Apache-2.0/BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
openstackdocstheme>=1.18.1 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
reno>=2.5.0 # Apache-2.0

View File

@ -12,7 +12,6 @@ deps =
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
sphinx-build -E -W -b doctest doc/source doc/build/doctest
[testenv:pep8]
basepython = python3
@ -37,6 +36,7 @@ basepython = python2.7
[testenv:docs]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build
sphinx-build -E -W -b html doc/source doc/build/html