Browse Source

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
tags/2.20.0
ChangBo Guo(gcb) 1 year ago
parent
commit
f0dd124daa
3 changed files with 12 additions and 6 deletions
  1. 5
    0
      doc/requirements.txt
  2. 0
    5
      test-requirements.txt
  3. 7
    1
      tox.ini

+ 5
- 0
doc/requirements.txt View File

@@ -0,0 +1,5 @@
1
+# These are needed for docs generation
2
+openstackdocstheme>=1.17.0 # Apache-2.0
3
+sphinx>=1.6.2 # BSD
4
+reno>=2.5.0 # Apache-2.0
5
+fixtures>=3.0.0 # Apache-2.0/BSD

+ 0
- 5
test-requirements.txt View File

@@ -7,10 +7,5 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
7 7
 oslotest>=1.10.0 # Apache-2.0
8 8
 coverage!=4.4,>=4.0 # Apache-2.0
9 9
 
10
-# These are needed for docs generation
11
-openstackdocstheme>=1.17.0 # Apache-2.0
12
-sphinx>=1.6.2 # BSD
13
-reno>=2.5.0 # Apache-2.0
14
-
15 10
 # Bandit security code scanner
16 11
 bandit>=1.1.0 # Apache-2.0

+ 7
- 1
tox.ini View File

@@ -22,7 +22,10 @@ commands =
22 22
 commands = {posargs}
23 23
 
24 24
 [testenv:docs]
25
-commands = python setup.py build_sphinx
25
+deps =
26
+  -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
27
+  -r{toxinidir}/doc/requirements.txt
28
+commands = sphinx-build -b html doc/source doc/build/html
26 29
 
27 30
 [testenv:cover]
28 31
 commands = python setup.py test --coverage --coverage-package-name=oslo_context --testr-args='{posargs}'
@@ -46,4 +49,7 @@ deps = pip_missing_reqs
46 49
 commands = pip-missing-reqs -d --ignore-module=oslo_context* --ignore-file=oslo_context/tests/* --ignore-file=tests/ oslo_context
47 50
 
48 51
 [testenv:releasenotes]
52
+deps =
53
+  -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
54
+  -r{toxinidir}/doc/requirements.txt
49 55
 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html

Loading…
Cancel
Save