From a0b6eed812ab5005a3a3ccb0be516a3d4fdc46b8 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Fri, 28 Nov 2025 12:35:21 +0100 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Drop=20docutils=200.19?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In preparation for docutils 0.22 --- .github/workflows/tests.yml | 2 +- pyproject.toml | 2 +- tests/test_sphinx/test_sphinx_builds.py | 9 +-------- .../test_sphinx_builds/test_gettext_html.html | 2 +- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4772cf03..e3ad753f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -73,7 +73,7 @@ jobs: strategy: fail-fast: false matrix: - docutils-version: ["0.19", "0.20", "0.21"] + docutils-version: ["0.20", "0.21"] steps: - name: Checkout source diff --git a/pyproject.toml b/pyproject.toml index bbef7038..9e65c5fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ keywords = [ ] requires-python = ">=3.11" dependencies = [ - "docutils>=0.19,<0.22", + "docutils>=0.20,<0.22", "jinja2", # required for substitutions, but let sphinx choose version "markdown-it-py~=4.0", "mdit-py-plugins~=0.5", diff --git a/tests/test_sphinx/test_sphinx_builds.py b/tests/test_sphinx/test_sphinx_builds.py index 59673db3..1d01eaee 100644 --- a/tests/test_sphinx/test_sphinx_builds.py +++ b/tests/test_sphinx/test_sphinx_builds.py @@ -474,14 +474,7 @@ def test_gettext_html( filename="index.html", regress_html=True, regress_ext=".html", - replace={ - # upstream bug https://github.com/sphinx-doc/sphinx/issues/11689 - '"Permalink to this heading"': '"Lien permanent vers cette rubrique"', - # which was fixed to a different translation in sphinx 7.3 - '"Lien vers cette rubrique"': '"Lien permanent vers cette rubrique"', - # changed in docutils>0.19 - ' role="note">': ' role="doc-footnote">', - }, + replace={}, ) diff --git a/tests/test_sphinx/test_sphinx_builds/test_gettext_html.html b/tests/test_sphinx/test_sphinx_builds/test_gettext_html.html index 7e497f62..a77dc404 100644 --- a/tests/test_sphinx/test_sphinx_builds/test_gettext_html.html +++ b/tests/test_sphinx/test_sphinx_builds/test_gettext_html.html @@ -7,7 +7,7 @@

gras - + ΒΆ