10000 bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309) · python/cpython@f8b3c64 · GitHub
[go: up one dir, main page]

Skip to content

Commit f8b3c64

Browse files
vstinnerambv
authored andcommitted
bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309)
Doc/requirements.txt becomes the reference for packages and package versions needed to build the Python documentation. * Doc/Makefile now uses Doc/requirements.txt * .travis.yml now uses "make env" of Doc/Makefile * Update Sphinx to version 2.4.4 (cherry picked from commit 8394500)
1 parent e5cc5fd commit f8b3c64

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ matrix:
5151
env: TESTING=docs
5252
before_script:
5353
- cd Doc
54-
# Sphinx is pinned so that new versions that introduce new warnings won't suddenly cause build failures.
55-
# (Updating the version is fine as long as no warnings are raised by doing so.)
56-
# The theme used by the docs is stored separately, so we need to install that as well.
57-
- python -m pip install sphinx==2.2.0 blurb python-docs-theme
54+
- make venv PYTHON=python
5855
script:
5956
- make check suspicious html SPHINXOPTS="-q -W -j4"
6057
- name: "Documentation tests"

Doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ clean:
143143
venv:
144144
$(PYTHON) -m venv $(VENVDIR)
145145
$(VENVDIR)/bin/python3 -m pip install -U pip setuptools
146-
$(VENVDIR)/bin/python3 -m pip install -U Sphinx==2.3.1 blurb python-docs-theme
146+
$(VENVDIR)/bin/python3 -m pip install -r requirements.txt
147147
@echo "The venv has been created in the $(VENVDIR) directory"
148148

149149
dist:

Doc/requirements.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
# Requirements for docs build on netlify
2-
# Pin sphinx to version specified in .travis.yml
3-
sphinx==2.2.0
1+
# Requirements to build the Python documentation
2+
3+
# Sphinx version is pinned so that new versions that introduce new warnings
4+
# won't suddenly cause build failures. Updating the version is fine as long
5+
# as no warnings are raised by doing so.
6+
sphinx==2.4.4
7+
48
blurb
9+
10+
# The theme used by the documentation is stored separately, so we need
11+
# to install that as well.
512
python-docs-theme

0 commit comments

Comments
 (0)
0