Skip to content

Commit bd38394

Browse files
build: upgrade Sphinx 4→7, drop m2r2/recommonmark, Python 3.11+ (#167)
* build: upgrade Sphinx 4→9, drop m2r2/recommonmark, Python 3.11+ - Upgrade sphinx 4.x → >=7.0 (resolves Python 3.13 incompatibility from imghdr removal, closes #157) - Replace m2r2 + recommonmark with myst-parser >=2.0 (handles all Markdown; m2r2/recommonmark are unmaintained and incompatible with Sphinx 7+) - Drop setuptools workaround (was needed only for m2r2) - Pin python >=3.11 (matching .readthedocs.yml; 3.13 in CI/RTD) - Bump sphinx_rtd_theme to >=2.0, sphinx-tabs to ^3.4, sphinx-click to >=6.0 - Update .readthedocs.yml: python 3.11 → 3.13 - Update CI: actions/checkout@v2→v4, setup-python@v1→v5, python 3.12→3.13 - Regenerate poetry.lock (sphinx 9.0.4, myst-parser 5.0.0) * fix(conf): fix Sphinx 9 extlinks TypeError and warnings - Add %s to extlinks captions (required by Sphinx 7+) - Set language = "en" instead of None (deprecated in Sphinx 9) - Exclude changelog/*.md from build (duplicates of .rst files that cause "multiple files found" warnings with myst-parser) * fix(deps): pin Sphinx <9 for sphinx-tabs compatibility sphinx-tabs 3.4.7 has a known KeyError on 'backrefs' with Sphinx 9 (executablebooks/sphinx-tabs#209). Pin to Sphinx 8.x which supports Python 3.13 and is compatible with all current extensions.
1 parent f040671 commit bd38394

File tree

5 files changed

+176
-294
lines changed

5 files changed

+176
-294
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
with:
1515
submodules: recursive
1616

1717
- name: Set up Python
18-
uses: actions/setup-python@v1
18+
uses: actions/setup-python@v5
1919
with:
20-
python-version: 3.12
20+
python-version: "3.13"
2121
- name: Install APT dependencies
2222
run: |
2323
sudo apt-get install -y git build-essential apt-utils wget libfreetype6 libpng-dev libopenblas-dev gcc gfortran libsnappy-dev graphviz

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-22.04
1010
tools:
11-
python: "3.11"
11+
python: "3.13"
1212
jobs:
1313
post_create_environment:
1414
- pip install poetry

0 commit comments

Comments
 (0)