Skip to contentSkip to conversation

docs: bump sphinx_rtd_theme pin to fix --enable-docs build

PATCH In review Brian Cain 4 participants 6 messages Sep 6 – Sep 9

lore
Share & tools
lore

Brian Cain

author
#0 lore raw

PATCH 1/1 docs: bump sphinx_rtd_theme pin to fix --enable-docs build

pythondeps.toml and docs/requirements.txt pin sphinx==7.2.6 alongside sphinx_rtd_theme==1.2.2, but 1.2.2 requires sphinx<7 on PyPI.

A fresh install of the docs group silently downgrades Sphinx to 6.2.1 to satisfy that cap, which then fails Sphinx's own >=7.2.6 runtime check in docs/meson.build.

sphinx_rtd_theme==2.0.0 is the first release that drops the sphinx<7 cap and resolves cleanly against sphinx==7.2.6.

---
 docs/requirements.txt | 2 +-
 pythondeps.toml       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
docs/requirements.txt +1 -1
index c10c4cf7c91..509d56bd1e8 100644
@@ -2,4 +2,4 @@
 # Should be in sync with the "installed" key of pythondeps.toml
 
 sphinx==7.2.6
-sphinx_rtd_theme==1.2.2
+sphinx_rtd_theme==2.0.0
pythondeps.toml +1 -1
index e4c10d4a9f7..afb1364dd28 100644
@@ -29,7 +29,7 @@ meson = { accepted = ">=1.12.0", installed = "1.12.0", canary = "meson" }
 [docs]
 # Please keep the installed versions in sync with docs/requirements.txt
 sphinx = { accepted = ">=7.2.6", installed = "7.2.6", canary = "sphinx-build" }
-sphinx_rtd_theme = { accepted = ">=1.2.2", installed = "1.2.2" }
+sphinx_rtd_theme = { accepted = ">=1.2.2", installed = "2.0.0" }
 
 # This test group is for dependencies required to run various tooling
 # and tests that should always be installed at configure time. It should
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Brian Cain

pythondeps.toml and docs/requirements.txt pin sphinx==7.2.6 alongside sphinx_rtd_theme==1.2.2, but 1.2.2 requires sphinx<7 on PyPI.

A fresh install of the docs group silently downgrades Sphinx to 6.2.1 to satisfy that cap, which then fails Sphinx's own >=7.2.6 runtime check in docs/meson.build.

sphinx_rtd_theme==2.0.0 is the first release that drops the sphinx<7 cap and resolves cleanly against sphinx==7.2.6.

Thank you for catching this and writing a very targeted fix.

I did not notice the silent downgrade as I have sufficiently modern releases on my base system which our build system happily used instead, and none of our CI tests noticed. I'll have to invest some time to ensure this is tested somewhere for the future.

Quoted 2 lines

(I did not test this, but based on the failure logs I saw and the PyPI version constraints for Sphinx, I believe this fix is appropriate. Peter, would you be so kind as to take this patch directly as a build fix? I am taking today off as a sick day and don't want a build failure to linger.)

Quoted 32 lines
---
 docs/requirements.txt | 2 +-
 pythondeps.toml       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
docs/requirements.txt +1 -1
index c10c4cf7c91..509d56bd1e8 100644
@@ -2,4 +2,4 @@
 # Should be in sync with the "installed" key of pythondeps.toml
 
 sphinx==7.2.6
-sphinx_rtd_theme==1.2.2
+sphinx_rtd_theme==2.0.0
pythondeps.toml +1 -2
index e4c10d4a9f7..afb1364dd28 100644
@@ -29,7 +29,7 @@ meson = { accepted = ">=1.12.0", installed = "1.12.0", canary = "meson" }
 [docs]
 # Please keep the installed versions in sync with docs/requirements.txt
 sphinx = { accepted = ">=7.2.6", installed = "7.2.6", canary = "sphinx-build" }
-sphinx_rtd_theme = { accepted = ">=1.2.2", installed = "1.2.2" }
+sphinx_rtd_theme = { accepted = ">=1.2.2", installed = "2.0.0" }
 
 # This test group is for dependencies required to run various tooling
 # and tests that should always be installed at configure time. It should
--

2.34.1

#2 lore raw
Quoted 23 lines · John Snow
Quoted 10 lines · Brian Cain

pythondeps.toml and docs/requirements.txt pin sphinx==7.2.6 alongside sphinx_rtd_theme==1.2.2, but 1.2.2 requires sphinx<7 on PyPI.

A fresh install of the docs group silently downgrades Sphinx to 6.2.1 to satisfy that cap, which then fails Sphinx's own >=7.2.6 runtime check in docs/meson.build.

sphinx_rtd_theme==2.0.0 is the first release that drops the sphinx<7 cap and resolves cleanly against sphinx==7.2.6.

Thank you for catching this and writing a very targeted fix.

I did not notice the silent downgrade as I have sufficiently modern releases on my base system which our build system happily used instead, and none of our CI tests noticed. I'll have to invest some time to ensure this is tested somewhere for the future.

Quoted 2 lines
Quoted 7 lines

(I did not test this, but based on the failure logs I saw and the PyPI version constraints for Sphinx, I believe this fix is appropriate. Peter, would you be so kind as to take this patch directly as a build fix? I am taking today off as a sick day and don't want a build failure to linger.)

Sure, I can do that. (Though I haven't seen much complaining, so I expect most people, like you and me and the CI, have the sphinx and rtd-theme installed on the host and dodged the bug :-))

-- PMM

Reviewed-by on v1 1/1
#3 lore raw
In reply to Brian Cain
Quoted 31 lines · Brian Cain

pythondeps.toml and docs/requirements.txt pin sphinx==7.2.6 alongside sphinx_rtd_theme==1.2.2, but 1.2.2 requires sphinx<7 on PyPI.

A fresh install of the docs group silently downgrades Sphinx to 6.2.1 to satisfy that cap, which then fails Sphinx's own >=7.2.6 runtime check in docs/meson.build.

sphinx_rtd_theme==2.0.0 is the first release that drops the sphinx<7 cap and resolves cleanly against sphinx==7.2.6.

---
  docs/requirements.txt | 2 +-
  pythondeps.toml       | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
docs/requirements.txt +1 -1
index c10c4cf7c91..509d56bd1e8 100644
@@ -2,4 +2,4 @@
  # Should be in sync with the "installed" key of pythondeps.toml
 
  sphinx==7.2.6
-sphinx_rtd_theme==1.2.2
+sphinx_rtd_theme==2.0.0
pythondeps.toml +0 -0
index e4c10d4a9f7..afb1364dd28 100644

pythondeps.toml meson = { accepted = ">=1.12.0", installed = "1.12.0", canary = "meson" } · line 35

Quoted 8 lines
pythondeps.toml +1 -1
@@ -29,7 +29,7 @@ meson = { accepted = ">=1.12.0", installed = "1.12.0", canary = "meson" }
  [docs]
  # Please keep the installed versions in sync with docs/requirements.txt
  sphinx = { accepted = ">=7.2.6", installed = "7.2.6", canary = "sphinx-build" }
-sphinx_rtd_theme = { accepted = ">=1.2.2", installed = "1.2.2" }
+sphinx_rtd_theme = { accepted = ">=1.2.2", installed = "2.0.0" }
 
  # This test group is for dependencies required to run various tooling
  # and tests that should always be installed at configure time. It should

It would be good to get this queued to master soon as my local development setup is currently broken (particularly as I'm working on series that include documentation changes).

ATB,

Mark.

#4 lore raw
Quoted 40 lines · Mark Cave-Ayland
Quoted 37 lines · Brian Cain

pythondeps.toml and docs/requirements.txt pin sphinx==7.2.6 alongside sphinx_rtd_theme==1.2.2, but 1.2.2 requires sphinx<7 on PyPI.

A fresh install of the docs group silently downgrades Sphinx to 6.2.1 to satisfy that cap, which then fails Sphinx's own >=7.2.6 runtime check in docs/meson.build.

sphinx_rtd_theme==2.0.0 is the first release that drops the sphinx<7 cap and resolves cleanly against sphinx==7.2.6.

---
  docs/requirements.txt | 2 +-
  pythondeps.toml       | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
docs/requirements.txt +1 -1
index c10c4cf7c91..509d56bd1e8 100644
@@ -2,4 +2,4 @@
  # Should be in sync with the "installed" key of pythondeps.toml
 
  sphinx==7.2.6
-sphinx_rtd_theme==1.2.2
+sphinx_rtd_theme==2.0.0
pythondeps.toml +1 -1
index e4c10d4a9f7..afb1364dd28 100644
@@ -29,7 +29,7 @@ meson = { accepted = ">=1.12.0", installed = "1.12.0", canary = "meson" }
  [docs]
  # Please keep the installed versions in sync with docs/requirements.txt
  sphinx = { accepted = ">=7.2.6", installed = "7.2.6", canary = "sphinx-build" }
-sphinx_rtd_theme = { accepted = ">=1.2.2", installed = "1.2.2" }
+sphinx_rtd_theme = { accepted = ">=1.2.2", installed = "2.0.0" }
 
Quoted 8 lines

pythondeps.toml meson = { accepted = ">=1.12.0", installed = "1.12.0", canary = "meson" } · line 35

Quoted 2 lines
pythondeps.toml +0 -0
  # This test group is for dependencies required to run various tooling
  # and tests that should always be installed at configure time. It should

It would be good to get this queued to master soon as my local development setup is currently broken (particularly as I'm working on series that include documentation changes).

I've now applied this to master as a buildfix; thanks.

-- PMM

#5 lore raw
Quoted 47 lines · Peter Maydell
Quoted 45 lines · Mark Cave-Ayland
Quoted 31 lines · Brian Cain

pythondeps.toml and docs/requirements.txt pin sphinx==7.2.6 alongside sphinx_rtd_theme==1.2.2, but 1.2.2 requires sphinx<7 on PyPI.

A fresh install of the docs group silently downgrades Sphinx to 6.2.1 to satisfy that cap, which then fails Sphinx's own >=7.2.6 runtime check in docs/meson.build.

sphinx_rtd_theme==2.0.0 is the first release that drops the sphinx<7 cap and resolves cleanly against sphinx==7.2.6.

---
   docs/requirements.txt | 2 +-
   pythondeps.toml       | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)
docs/requirements.txt +1 -1
index c10c4cf7c91..509d56bd1e8 100644
@@ -2,4 +2,4 @@
   # Should be in sync with the "installed" key of pythondeps.toml
 
   sphinx==7.2.6
-sphinx_rtd_theme==1.2.2
+sphinx_rtd_theme==2.0.0
pythondeps.toml +0 -0
index e4c10d4a9f7..afb1364dd28 100644

pythondeps.toml meson = { accepted = ">=1.12.0", installed = "1.12.0", canary = "meson" } · line 35

Quoted 8 lines
pythondeps.toml +1 -1
@@ -29,7 +29,7 @@ meson = { accepted = ">=1.12.0", installed = "1.12.0", canary = "meson" }
   [docs]
   # Please keep the installed versions in sync with docs/requirements.txt
   sphinx = { accepted = ">=7.2.6", installed = "7.2.6", canary = "sphinx-build" }
-sphinx_rtd_theme = { accepted = ">=1.2.2", installed = "1.2.2" }
+sphinx_rtd_theme = { accepted = ">=1.2.2", installed = "2.0.0" }
 
   # This test group is for dependencies required to run various tooling
   # and tests that should always be installed at configure time. It should
Quoted 5 lines
Quoted 3 lines

It would be good to get this queued to master soon as my local development setup is currently broken (particularly as I'm working on series that include documentation changes).

I've now applied this to master as a buildfix; thanks.

Thanks Peter!

ATB,

Mark.