]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35293: Travis CI uses "make venv" for the doc (GH-22307)
authorVictor Stinner <vstinner@python.org>
Fri, 18 Sep 2020 14:23:18 +0000 (16:23 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Sep 2020 14:23:18 +0000 (16:23 +0200)
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

.travis.yml
Doc/Makefile
Doc/requirements.txt

index a915f7a46ec3d505c0b11d6bfc537f4b6864f0d1..254a4ea35ab944b70ba67d3b686c8bc13f08404e 100644 (file)
@@ -51,10 +51,7 @@ matrix:
       env: TESTING=docs
       before_script:
         - cd Doc
-        # Sphinx is pinned so that new versions that introduce new warnings won't suddenly cause build failures.
-        # (Updating the version is fine as long as no warnings are raised by doing so.)
-        # The theme used by the docs is stored separately, so we need to install that as well.
-        - python -m pip install sphinx==2.2.0 blurb python-docs-theme
+        - make venv PYTHON=python
       script:
         - make check suspicious html SPHINXOPTS="-q -W -j4"
     - name: "Documentation tests"
index c11a7ca5c1bcb7023013f1ec9a56cabf0cb5046b..f653d70674eb1c6565c41c2f2b0dc66cac214599 100644 (file)
@@ -143,7 +143,7 @@ clean:
 venv:
        $(PYTHON) -m venv $(VENVDIR)
        $(VENVDIR)/bin/python3 -m pip install -U pip setuptools
-       $(VENVDIR)/bin/python3 -m pip install -U Sphinx==3.2.1 blurb python-docs-theme
+       $(VENVDIR)/bin/python3 -m pip install -r requirements.txt
        @echo "The venv has been created in the $(VENVDIR) directory"
 
 dist:
index 198446b350ff2d36ac385c85e3435cf3e7703b70..2b70af3a4fc6b9d9e69a1bbc51ea0260cf76e44e 100644 (file)
@@ -1,5 +1,12 @@
-# Requirements for docs build on netlify
-# Pin sphinx to version specified in .travis.yml
-sphinx==2.2.0
+# Requirements to build the Python documentation
+
+# Sphinx version is pinned so that new versions that introduce new warnings
+# won't suddenly cause build failures. Updating the version is fine as long
+# as no warnings are raised by doing so.
+sphinx==3.2.1
+
 blurb
+
+# The theme used by the documentation is stored separately, so we need
+# to install that as well.
 python-docs-theme