The error in #1094 wasn't catched by the tests as they are relying on myst-nb (executablebooks/MyST-NB#466) and sphinx-design (executablebooks/sphinx-design#118), which are both restricting sphinx<6
.
Happy to hear your opinion on which of the below options would be preferred (or is there a third?).
Option 1
Add new optional dependency sections in pyproject.toml
(doc_newest_sphinx
and test_newest_sphinx
) and add additional nox routine for testing without installing the above mentioned packages, therefore using the latest version.
In addition, add a second testing to .github/workflows/tests.yml
using this optional dependency section (would currently fail on main).
Optional: somehow doublecheck that no restriction pins sphinx - maybe directly use sphinx from github upstream?
Option 2
add another test routine directly to test.yml
that simply does pip install --upgrade sphinx
( maybe --pre
?) before running the tests to ignore the constrained imposed by the packages. Easier but hackier, I'd prefer the first one.