Skip to content

Commit cebcb93

Browse files
committed
Stop testing sphinx 9
1 parent 2c407df commit cebcb93

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,35 @@ jobs:
1515

1616
tests:
1717

18+
env:
19+
# Latest supported versions for reuse
20+
LATEST_PYTHON: "3.13"
21+
LATEST_SPHINX: "~=8.0"
22+
1823
strategy:
1924
fail-fast: false
2025
matrix:
2126
os: [ubuntu-latest]
2227
python-version: ["3.10", "3.11", "3.12", "3.13"]
23-
sphinx: [""] # Newest Sphinx (any)
28+
sphinx: ["${{ env.LATEST_SPHINX }}"]
2429
myst-parser: [""] # Newest MyST Parser (any)
2530
include:
2631
# Just check the other platforms once
2732
- os: windows-latest
28-
python-version: "3.12"
29-
sphinx: "~=8.0"
33+
python-version: "${{ env.LATEST_PYTHON }}"
34+
sphinx: "${{ env.LATEST_SPHINX }}"
3035
myst-parser: "~=4.0"
3136
pillow: "==11.0.0"
3237
- os: macos-latest
33-
python-version: "3.12"
34-
sphinx: "~=8.0"
38+
python-version: "${{ env.LATEST_PYTHON }}"
39+
sphinx: "${{ env.LATEST_SPHINX }}"
3540
myst-parser: "~=4.0"
3641
pillow: "==11.0.0"
3742
- os: ubuntu-latest
38-
python-version: "3.12"
39-
sphinx: "~=8.0"
43+
python-version: "${{ env.LATEST_PYTHON }}"
44+
sphinx: "${{ env.LATEST_SPHINX }}"
4045
myst-parser: "~=4.0"
4146
pillow: "==11.0.0"
42-
# Oldest known-compatible dependencies
43-
- os: ubuntu-latest
44-
python-version: "3.10"
45-
sphinx: "==5.0.0"
46-
myst-parser: "==1.0.0"
47-
pillow: "==11.0.0"
4847
# Mid-range dependencies
4948
- os: ubuntu-latest
5049
python-version: "3.11"
@@ -53,8 +52,8 @@ jobs:
5352
pillow: "==11.0.0"
5453
# Newest known-compatible dependencies
5554
- os: ubuntu-latest
56-
python-version: "3.13"
57-
sphinx: "~=9.0.2"
55+
python-version: "${{ env.LATEST_PYTHON }}"
56+
sphinx: "${{ env.LATEST_SPHINX }}"
5857
myst-parser: "==4.0.0"
5958
pillow: "==11.0.0"
6059

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ filterwarnings = [
175175
# From matplotlib’s dependencies
176176
'ignore::DeprecationWarning:pyparsing', # imports deprecated `sre_constants`
177177
# From myst-parser on Sphinx 9
178-
'ignore:.*MystReferenceResolver.app.*:sphinx.deprecation.RemovedInSphinx11Warning',
178+
'ignore:.*MystReferenceResolver.app.*:DeprecationWarning',
179179
# Upstream myst-parser still hits env.app deprecations under Sphinx 9
180-
'ignore:.*env\\.app.*:sphinx.deprecation.RemovedInSphinx10Warning:myst_parser',
180+
'ignore:.*env\\.app.*:DeprecationWarning:myst_parser',
181181
# Windows issues, some may need to be fixed in MyST-NB, others are upstream
182182
'ignore:Proactor event loop does not implement add_reader:RuntimeWarning:zmq',
183183
]

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@
1111
# then then deleting compiled files has been found to fix it: `find . -name \*.pyc -delete`
1212

1313
[tox]
14-
envlist = py313-sphinx9
14+
envlist = py313-sphinx8
1515

1616
[testenv]
1717
usedevelop = true
1818

19-
[testenv:py{310,312,313}-sphinx{7,8,9}]
19+
[testenv:py{310,311,312,313}-sphinx{7,8}]
2020
extras = testing
2121
deps =
2222
sphinx7: sphinx>=7,<8
2323
sphinx8: sphinx>=8,<9
24-
sphinx9: sphinx>=9,<10
2524
commands = pytest {posargs}
2625

2726
[testenv:docs-{update,clean}]

0 commit comments

Comments
 (0)