Browse Source

Move doc related modules to doc/requirements.txt

Change-Id: I995f7c4e0152a19d2ae2890d6940419f30638444
changes/08/669408/8
caoyuan 2 years ago
parent
commit
d9ffc59031
4 changed files with 16 additions and 6 deletions
  1. +2
    -0
      .gitignore
  2. +8
    -0
      doc/requirements.txt
  3. +0
    -5
      test-requirements.txt
  4. +6
    -1
      tox.ini

+ 2
- 0
.gitignore View File

@ -55,3 +55,5 @@ ChangeLog
# reno build
releasenotes/build
releasenotes/notes/reno.cache
RELEASENOTES.rst

+ 8
- 0
doc/requirements.txt View File

@ -0,0 +1,8 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
openstackdocstheme>=1.18.1 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
reno>=2.5.0 # Apache-2.0

+ 0
- 5
test-requirements.txt View File

@ -9,12 +9,7 @@ oslotest>=3.2.0 # Apache-2.0
requests>=2.14.2 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
# These are needed for docs generation/testing
openstackdocstheme>=1.18.1 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
doc8>=0.6.0 # Apache-2.0
reno>=2.5.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0


+ 6
- 1
tox.ini View File

@ -10,6 +10,7 @@ setenv =
install_command = pip install {opts} {packages}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
whitelist_externals = find
@ -30,7 +31,11 @@ commands = {posargs}
[testenv:docs]
basepython = python3
commands = sphinx-build -W -b html doc/source doc/build/html {posargs}
whitelist_externals =
rm
commands =
rm -rf doc/build
sphinx-build -W -b html doc/source doc/build/html {posargs}
[testenv:cover]
basepython = python3


Loading…
Cancel
Save