8000 docs: update docs deps to latest versions (#1586) · bazel-contrib/rules_python@6695fe1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6695fe1

Browse files
authored
docs: update docs deps to latest versions (#1586)
The latest Sphinx version has several circular dependencies, but those can be handled with the requirements_cycles feature.
1 parent 4cb249a commit 6695fe1

File tree

5 files changed

+544
-441
lines changed

5 files changed

+544
-441
lines changed

MODULE.bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ docs_pip = use_extension(
6262
dev_dependency = True,
6363
)
6464
docs_pip.parse(
65+
experimental_requirement_cycles = {
66+
"sphinx": [
67+
"sphinx",
68+
"sphinxcontrib-serializinghtml",
69+
"sphinxcontrib-qthelp",
70+
"sphinxcontrib-htmlhelp",
71+
"sphinxcontrib-devhelp",
72+
"sphinxcontrib-applehelp",
73+
],
74+
},
6575
hub_name = "docs_deps",
6676
python_version = "3.11",
6777
requirements_darwin = "//docs/sphinx:requirements_darwin.txt",

WORKSPACE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,16 @@ install_deps()
110110

111111
pip_parse(
112112
name = "docs_deps",
113+
experimental_requirement_cycles = {
114+
"sphinx": [
115+
"sphinx",
116+
"sphinxcontrib-serializinghtml",
117+
"sphinxcontrib-qthelp",
118+
"sphinxcontrib-htmlhelp",
119+
"sphinxcontrib-devhelp",
120+
"sphinxcontrib-applehelp&qu 8000 ot;,
121+
],
122+
},
113123
incompatible_generate_aliases = True,
114124
python_interpreter_target = interpreter,
115125
requirements_darwin = "//docs/sphinx:requirements_darwin.txt",

docs/sphinx/BUILD.bazel

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ load("//sphinxdocs:readthedocs.bzl", "readthedocs_install")
1818
load("//sphinxdocs:sphinx.bzl", "sphinx_build_binary", "sphinx_docs", "sphinx_inventory")
1919
load("//sphinxdocs:sphinx_stardoc.bzl", "sphinx_stardocs")
2020

21-
# We only build for Linux and Mac because the actual doc process only runs
22-
# on Linux. Mac is close enough. Making CI happy under Windows is too much
23-
# of a headache, though, so we don't bother with that.
21+
# We only build for Linux and Mac because:
22+
# 1. The actual doc process only runs on Linux
23+
# 2. Mac is a common development platform, and is close enough to Linux
24+
# it's feasible to make work.
25+
# Making CI happy under Windows is too much of a headache, though, so we don't
26+
# bother with that.
2427
_TARGET_COMPATIBLE_WITH = select({
2528
"@platforms//os:linux": [],
2629
"@platforms//os:macos": [],

0 commit comments

Comments
 (0)
0