8000 Move doc build dependencies to Doc/requirements.txt (GH-96607) · python/cpython@8feefc2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8feefc2

Browse files
authored
Move doc build dependencies to Doc/requirements.txt (GH-96607)
This makes 3.7 doc builds similar to later releases, simplifying build tooling.
1 parent 15ec1af commit 8feefc2

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

Doc/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ clean:
127127

128128
venv:
129129
$(PYTHON) -m venv $(VENVDIR)
130-
$(VENVDIR)/bin/python3 -m pip install -U Sphinx==2.3.1 blurb docutils==0.17.1 Jinja2==3.0.3
130+
$(VENVDIR)/bin/python3 -m pip install -U pip setuptools
131+
$(VENVDIR)/bin/python3 -m pip install -r requirements.txt
131132
@echo "The venv has been created in the $(VENVDIR) directory"
132133

133134
dist:

Doc/requirements.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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.3.1
7+
# Docutils version is pinned to a version compatible with Sphinx
8+
# version 2.3.1. It can be removed after bumping Sphinx version to at
9+
# least 3.5.4.
10+
docutils==0.17.1
11+
# Jinja version is pinned to a version compatible with Sphinx version 2.3.1.
12+
jinja2==3.0.3
13+
14+
blurb
15+
16+
# The theme used by the documentation is stored separately, so we need
17+
# to install that as well.
18+
python-docs-theme

0 commit comments

Comments
 (0)
0