Move docs requirements to docs/

This makes the file easier to locate, by placing it next to the stuff
that it will affect.
This commit is contained in:
Pradyun Gedam 2021-07-24 12:01:27 +01:00
parent 5e86264b5a
commit 25af8e5f36
No known key found for this signature in database
GPG Key ID: FF99710C4332258E
5 changed files with 4 additions and 3 deletions

View File

@ -7,4 +7,4 @@ sphinx:
python: python:
version: 3.8 version: 3.8
install: install:
- requirements: tools/requirements/docs.txt - requirements: docs/requirements.txt

View File

@ -10,6 +10,7 @@ recursive-include src/pip/_vendor *LICENSE*
recursive-include src/pip/_vendor *COPYING* recursive-include src/pip/_vendor *COPYING*
include docs/docutils.conf include docs/docutils.conf
include docs/requirements.txt
exclude .coveragerc exclude .coveragerc
exclude .mailmap exclude .mailmap

View File

@ -24,7 +24,7 @@ LOCATIONS = {
"protected-pip": "tools/tox_pip.py", "protected-pip": "tools/tox_pip.py",
} }
REQUIREMENTS = { REQUIREMENTS = {
"docs": "tools/requirements/docs.txt", "docs": "docs/requirements.txt",
"tests": "tools/requirements/tests.txt", "tests": "tools/requirements/tests.txt",
"common-wheels": "tools/requirements/tests-common_wheels.txt", "common-wheels": "tools/requirements/tests-common_wheels.txt",
} }

View File

@ -48,7 +48,7 @@ setenv =
[testenv:docs] [testenv:docs]
# Don't skip install here since pip_sphinxext uses pip's internals. # Don't skip install here since pip_sphinxext uses pip's internals.
deps = -r{toxinidir}/tools/requirements/docs.txt deps = -r{toxinidir}/docs/requirements.txt
basepython = python3 basepython = python3
commands = commands =
sphinx-build -W -j auto -d {envtmpdir}/doctrees/html -b html docs/html docs/build/html sphinx-build -W -j auto -d {envtmpdir}/doctrees/html -b html docs/html docs/build/html