summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuoqiang Ding <dingguoqiang@cloudin.cn>2017-12-28 23:03:42 +0800
committerGuoqiang Ding <dingguoqiang@cloudin.cn>2017-12-28 23:59:44 +0800
commitd68f26ab95032b6880d18ad6c04e4d7c09b63629 (patch)
tree2f6d2b99bf5c5e9f17b93d9bc864fc08a4f5c5bb
parente386d5dbe53fce42d467c5d38c6048c25b32f245 (diff)
downloadpython-novaclient-d68f26ab95032b6880d18ad6c04e4d7c09b63629.tar.gz
Update new documentation PTI jobs
For compliance with the Project Testing Interface as described in [1]. For more detailed information, please refer to [2]. [1] https://governance.openstack.org/tc/reference/project-testing-interface.html [2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: Iace251446bafbd8963bc5a073de50ade583f6e46
-rw-r--r--doc/requirements.txt3
-rw-r--r--test-requirements.txt5
-rw-r--r--tox.ini14
3 files changed, 14 insertions, 8 deletions
diff --git a/doc/requirements.txt b/doc/requirements.txt
new file mode 100644
index 00000000..fada2eb0
--- /dev/null
+++ b/doc/requirements.txt
@@ -0,0 +1,3 @@
+sphinx>=1.6.2 # BSD
+openstackdocstheme>=1.17.0 # Apache-2.0
+reno>=2.5.0 # Apache-2.0
diff --git a/test-requirements.txt b/test-requirements.txt
index 65dedf36..d66dda68 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -13,14 +13,9 @@ python-cinderclient>=3.3.0 # Apache-2.0
python-glanceclient>=2.8.0 # Apache-2.0
python-neutronclient>=6.3.0 # Apache-2.0
requests-mock>=1.1.0 # Apache-2.0
-sphinx>=1.6.2 # BSD
os-client-config>=1.28.0 # Apache-2.0
-openstackdocstheme>=1.17.0 # Apache-2.0
osprofiler>=1.4.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
tempest>=17.1.0 # Apache-2.0
-
-# releasenotes
-reno>=2.5.0 # Apache-2.0
diff --git a/tox.ini b/tox.ini
index 2ffc89a5..ba4a4c14 100644
--- a/tox.ini
+++ b/tox.ini
@@ -32,12 +32,20 @@ commands = bandit -r novaclient -n5 -x tests
commands = {posargs}
[testenv:docs]
+deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/doc/requirements.txt
commands =
- python setup.py build_sphinx
+ sphinx-build -b html doc/source doc/build/html
[testenv:releasenotes]
-commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
-
+deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/doc/requirements.txt
+commands =
+ sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:functional]
basepython = python2.7