summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2017-12-19 13:41:54 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2017-12-20 17:34:50 +0800
commit2ba0aa94a0024332b119e49274bcd027225141e5 (patch)
tree1c4f3f7212259d40426f42d0ae781c01fbc277fe
parent58fb709f58bd031c5114d9b6fe2e0926175b87b6 (diff)
downloadoslo-utils-2ba0aa94a0024332b119e49274bcd027225141e5.tar.gz
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 detials information, please refer to: http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: I3d86f1897dc900ba815c0c3975e95e27bb29b532
-rw-r--r--doc/requirements.txt5
-rw-r--r--test-requirements.txt6
-rw-r--r--tox.ini4
3 files changed, 8 insertions, 7 deletions
diff --git a/doc/requirements.txt b/doc/requirements.txt
new file mode 100644
index 0000000..26ef9b9
--- /dev/null
+++ b/doc/requirements.txt
@@ -0,0 +1,5 @@
+# this is required for the docs build jobs
+sphinx>=1.6.2 # BSD
+openstackdocstheme>=1.17.0 # Apache-2.0
+reno>=2.5.0 # Apache-2.0
+fixtures>=3.0.0 # Apache-2.0/BSD
diff --git a/test-requirements.txt b/test-requirements.txt
index c072087..293b7e8 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -17,10 +17,6 @@ ddt>=1.0.1 # MIT
# deps = {[testenv]deps} coverage
coverage!=4.4,>=4.0 # Apache-2.0
-# this is required for the docs build jobs
-sphinx>=1.6.2 # BSD
-openstackdocstheme>=1.17.0 # Apache-2.0
-
# mocking framework
mock>=2.0.0 # BSD
@@ -29,5 +25,3 @@ oslo.config>=5.1.0 # Apache-2.0
# Bandit security code scanner
bandit>=1.1.0 # Apache-2.0
-
-reno>=2.5.0 # Apache-2.0
diff --git a/tox.ini b/tox.ini
index 5044eb1..ed1dd2c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -20,7 +20,8 @@ commands =
commands = {posargs}
[testenv:docs]
-commands = python setup.py build_sphinx
+deps = -r{toxinidir}/doc/requirements.txt
+commands = sphinx-build -b html doc/source doc/build/html
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=oslo_utils --testr-args='{posargs}'
@@ -42,4 +43,5 @@ deps = pip_missing_reqs
commands = pip-missing-reqs -d --ignore-module=oslo_utils* --ignore-module=pkg_resources --ignore-file=oslo_utils/test.py --ignore-file=oslo_utils/tests/* oslo_utils
[testenv:releasenotes]
+deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html