summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2017-12-19 14:47:09 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2017-12-19 19:00:49 +0800
commitf0dd124daa78c1f214fa67d9504cb0d5ab1b24db (patch)
treea4624066a8c1b6ff54de5885ef7b8ad5d5710f9a
parentf9970a94e5c70c6fa453061196899cec7a8a5b40 (diff)
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: I9d23ea7b5731fb677b2b1a09cdec74a1101dcd2c
Notes
Notes (review): Code-Review+2: Doug Hellmann <doug@doughellmann.com> Code-Review+1: Andreas Jaeger <jaegerandi@gmail.com> Workflow+1: Doug Hellmann <doug@doughellmann.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 03 Jan 2018 15:41:52 +0000 Reviewed-on: https://review.openstack.org/528970 Project: openstack/oslo.context Branch: refs/heads/master
-rw-r--r--doc/requirements.txt5
-rw-r--r--test-requirements.txt5
-rw-r--r--tox.ini8
3 files changed, 12 insertions, 6 deletions
diff --git a/doc/requirements.txt b/doc/requirements.txt
new file mode 100644
index 0000000..1ed3e79
--- /dev/null
+++ b/doc/requirements.txt
@@ -0,0 +1,5 @@
1# These are needed for docs generation
2openstackdocstheme>=1.17.0 # Apache-2.0
3sphinx>=1.6.2 # BSD
4reno>=2.5.0 # Apache-2.0
5fixtures>=3.0.0 # Apache-2.0/BSD
diff --git a/test-requirements.txt b/test-requirements.txt
index 6943177..73d5fef 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -7,10 +7,5 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
7oslotest>=1.10.0 # Apache-2.0 7oslotest>=1.10.0 # Apache-2.0
8coverage!=4.4,>=4.0 # Apache-2.0 8coverage!=4.4,>=4.0 # Apache-2.0
9 9
10# These are needed for docs generation
11openstackdocstheme>=1.17.0 # Apache-2.0
12sphinx>=1.6.2 # BSD
13reno>=2.5.0 # Apache-2.0
14
15# Bandit security code scanner 10# Bandit security code scanner
16bandit>=1.1.0 # Apache-2.0 11bandit>=1.1.0 # Apache-2.0
diff --git a/tox.ini b/tox.ini
index d916ce6..4ebe118 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,7 +22,10 @@ commands =
22commands = {posargs} 22commands = {posargs}
23 23
24[testenv:docs] 24[testenv:docs]
25commands = python setup.py build_sphinx 25deps =
26 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
27 -r{toxinidir}/doc/requirements.txt
28commands = sphinx-build -b html doc/source doc/build/html
26 29
27[testenv:cover] 30[testenv:cover]
28commands = python setup.py test --coverage --coverage-package-name=oslo_context --testr-args='{posargs}' 31commands = python setup.py test --coverage --coverage-package-name=oslo_context --testr-args='{posargs}'
@@ -46,4 +49,7 @@ deps = pip_missing_reqs
46commands = pip-missing-reqs -d --ignore-module=oslo_context* --ignore-file=oslo_context/tests/* --ignore-file=tests/ oslo_context 49commands = pip-missing-reqs -d --ignore-module=oslo_context* --ignore-file=oslo_context/tests/* --ignore-file=tests/ oslo_context
47 50
48[testenv:releasenotes] 51[testenv:releasenotes]
52deps =
53 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
54 -r{toxinidir}/doc/requirements.txt
49commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html 55commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html