summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyen Hai <nguyentrihai93@gmail.com>2018-03-19 20:35:59 +0900
committerNguyen Hai <nguyentrihai93@gmail.com>2018-03-20 18:36:54 +0900
commit7043c1af54ba110d0505edaac58e2f910ebf10ad (patch)
tree3888488eab4c05efbbe2ded9bd7ab37644fadbce
parent207ee54187844a141239512b43a4952732ddfb1f (diff)
downloadpython-saharaclient-7043c1af54ba110d0505edaac58e2f910ebf10ad.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 http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: I616ad9f7f089873890ba508cf3e39067f046ae53
-rw-r--r--doc/requirements.txt3
-rw-r--r--test-requirements.txt3
-rw-r--r--tox.ini19
3 files changed, 17 insertions, 8 deletions
diff --git a/doc/requirements.txt b/doc/requirements.txt
new file mode 100644
index 0000000..4089182
--- /dev/null
+++ b/doc/requirements.txt
@@ -0,0 +1,3 @@
+openstackdocstheme>=1.18.1 # Apache-2.0
+reno>=2.5.0 # Apache-2.0
+sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
diff --git a/test-requirements.txt b/test-requirements.txt
index 0f29687..a269d9d 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -6,10 +6,7 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
mock>=2.0.0 # BSD
-openstackdocstheme>=1.18.1 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
os-testr>=1.0.0 # Apache-2.0
-reno>=2.5.0 # Apache-2.0
requests-mock>=1.1.0 # Apache-2.0
-sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
testrepository>=0.0.18 # Apache-2.0/BSD
diff --git a/tox.ini b/tox.ini
index e5a6201..10f26c4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -16,6 +16,7 @@ deps =
commands = find . -type f -name "*.pyc" -delete
ostestr {posargs}
whitelist_externals = find
+ rm
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:debug]
@@ -53,14 +54,22 @@ commands = doc8 doc/source
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 =
- rm -rf doc/html doc/build
- python setup.py build_sphinx
-whitelist_externals =
- rm
+ rm -rf doc/build
+ sphinx-build -W -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 =
+ rm -rf releasenotes/build
+ sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
show-source = true