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: Ib36e24d0b38356790993fec24b8280464645bd29
Nguyen Van Trung 9 months ago
parent
commit
880d7122b8
5 changed files with 5 additions and 14 deletions
  1. 3
    0
      doc/requirements.txt
  2. 1
    1
      requirements.txt
  3. 0
    9
      setup.cfg
  4. 0
    3
      test-requirements.txt
  5. 1
    1
      tox.ini

+ 3
- 0
doc/requirements.txt View File

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

+ 1
- 1
requirements.txt View File

@@ -6,5 +6,5 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0
6 6
 six>=1.10.0 # MIT
7 7
 monotonic>=0.6 # Apache-2.0
8 8
 futures>=3.0.0;python_version=='2.7' or python_version=='2.6' # BSD
9
-contextlib2>=0.4.0 # PSF License
9
+contextlib2>=0.4.0;python_version<'3.0' # PSF License
10 10
 PrettyTable<0.8,>=0.7.1 # BSD

+ 0
- 9
setup.cfg View File

@@ -22,15 +22,6 @@ classifier =
22 22
 packages =
23 23
     futurist
24 24
 
25
-[build_sphinx]
26
-source-dir = doc/source
27
-build-dir = doc/build
28
-all_files = 1
29
-warning-is-error = 1
30
-
31
-[upload_sphinx]
32
-upload-dir = doc/build/html
33
-
34 25
 [compile_catalog]
35 26
 directory = futurist/locale
36 27
 domain = futurist

+ 0
- 3
test-requirements.txt View File

@@ -10,10 +10,7 @@ eventlet!=0.18.3,!=0.20.1,>=0.18.2 # MIT
10 10
 doc8>=0.6.0 # Apache-2.0
11 11
 coverage!=4.4,>=4.0 # Apache-2.0
12 12
 python-subunit>=1.0.0 # Apache-2.0/BSD
13
-sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
14
-openstackdocstheme>=1.18.1 # Apache-2.0
15 13
 oslotest>=3.2.0 # Apache-2.0
16 14
 testrepository>=0.0.18 # Apache-2.0/BSD
17 15
 testscenarios>=0.4 # Apache-2.0/BSD
18 16
 testtools>=2.2.0 # MIT
19
-reno>=2.5.0 # Apache-2.0

+ 1
- 1
tox.ini View File

@@ -12,7 +12,6 @@ deps =
12 12
        -r{toxinidir}/test-requirements.txt
13 13
 commands =
14 14
     python setup.py testr --slowest --testr-args='{posargs}'
15
-    sphinx-build -E -W -b doctest doc/source doc/build/doctest
16 15
 
17 16
 [testenv:pep8]
18 17
 basepython = python3
@@ -37,6 +36,7 @@ basepython = python2.7
37 36
 
38 37
 [testenv:docs]
39 38
 basepython = python3
39
+deps = -r{toxinidir}/doc/requirements.txt
40 40
 commands =
41 41
     rm -rf doc/build
42 42
     sphinx-build -E -W -b html doc/source doc/build/html

Loading…
Cancel
Save