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 details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ia8a5a4eb2770976ac7b3b99c6d32d8aa37cedac7
Nguyen Van Trung 9 months ago
parent
commit
72e3217e5e
4 changed files with 5 additions and 13 deletions
  1. 3
    0
      doc/requirements.txt
  2. 0
    9
      setup.cfg
  3. 0
    3
      test-requirements.txt
  4. 2
    1
      tox.ini

+ 3
- 0
doc/requirements.txt View File

@@ -0,0 +1,3 @@
1
+openstackdocstheme>=1.18.1 # Apache-2.0
2
+reno>=2.5.0 # Apache-2.0
3
+sphinx!=1.6.6,>=1.6.2 # BSD

+ 0
- 9
setup.cfg View File

@@ -31,15 +31,6 @@ packages =
31 31
 data_files =
32 32
     libexec/kuryr = usr/libexec/kuryr/*
33 33
 
34
-[build_sphinx]
35
-source-dir = doc/source
36
-build-dir = doc/build
37
-all_files = 1
38
-warning-is-error = 1
39
-
40
-[upload_sphinx]
41
-upload-dir = doc/build/html
42
-
43 34
 [compile_catalog]
44 35
 directory = kuryr/locale
45 36
 domain = kuryr

+ 0
- 3
test-requirements.txt View File

@@ -7,11 +7,8 @@ coverage!=4.4,>=4.0 # Apache-2.0
7 7
 ddt>=1.0.1 # MIT
8 8
 hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
9 9
 os-testr>=1.0.0 # Apache-2.0
10
-openstackdocstheme>=1.18.1 # Apache-2.0
11 10
 oslotest>=3.2.0 # Apache-2.0
12 11
 python-subunit>=1.0.0 # Apache-2.0/BSD
13
-reno>=2.5.0 # Apache-2.0
14
-sphinx!=1.6.6,>=1.6.2 # BSD
15 12
 testrepository>=0.0.18 # Apache-2.0/BSD
16 13
 testscenarios>=0.4 # Apache-2.0/BSD
17 14
 testtools>=2.2.0 # MIT

+ 2
- 1
tox.ini View File

@@ -54,7 +54,8 @@ commands =
54 54
 
55 55
 [testenv:docs]
56 56
 basepython = python3
57
-commands = python setup.py build_sphinx
57
+deps = -r{toxinidir}/doc/requirements.txt
58
+commands = sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
58 59
 
59 60
 [flake8]
60 61
 # E125 continuation line does not distinguish itself from next logical line

Loading…
Cancel
Save