Skip to content

Commit bde3ad0

Browse files
authored
Pin Sphinx for 3.8, 3.9 and 3.10
1 parent 815baf7 commit bde3ad0

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

build_docs.py

+14-7
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ def title(self):
102102
Version("3.5", "3.5", "security-fixes", sphinx_version="1.8.4"),
103103
Version("3.6", "3.6", "security-fixes", sphinx_version="2.3.1"),
104104
Version("3.7", "3.7", "security-fixes", sphinx_version="2.3.1"),
105-
Version("3.8", "3.8", "stable"),
106-
Version("3.9", "3.9", "pre-release"),
107-
Version("3.10", "master", "in development"),
105+
Version("3.8", "3.8", "stable", sphinx_version="2.4.4"),
106+
Version("3.9", "3.9", "pre-release", sphinx_version="2.4.4"),
107+
Version("3.10", "master", "in development", sphinx_version="3.2.1"),
108108
]
109109

110110
XELATEX_DEFAULT = (
@@ -316,7 +316,9 @@ def picker_label(version):
316316
def setup_indexsidebar(dest_path):
317317
versions_li = []
318318
for version in sorted(
319-
VERSIONS, key=lambda v: version_to_tuple(v.name), reverse=True,
319+
VERSIONS,
320+
key=lambda v: version_to_tuple(v.name),
321+
reverse=True,
320322
):
321323
versions_li.append(
322324
'<li><a href="{}">{}</a></li>'.format(version.url, version.title)
@@ -384,7 +386,13 @@ def setup_switchers(html_root):
384386

385387

386388
def build_one(
387-
version, quick, venv, build_root, group, log_directory, language: Language,
389+
version,
390+
quick,
391+
venv,
392+
build_root,
393+
group,
394+
log_directory,
395+
language: Language,
388396
):
389397
checkout = os.path.join(
390398
build_root, version.name, "cpython-{lang}".format(lang=language.tag)
@@ -485,8 +493,7 @@ def copy_build_to_webroot(
485493
skip_cache_invalidation,
486494
www_root,
487495
):
488-
"""Copy a given build to the appropriate webroot with appropriate rights.
489-
"""
496+
"""Copy a given build to the appropriate webroot with appropriate rights."""
490497
logging.info(
491498
"Publishing start for version: %s, language: %s", version.name, language.tag
492499
)

0 commit comments

Comments
 (0)