From 9e85b5533f93cc7e9759c104249683eb9212a4e2 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Wed, 8 Jan 2025 23:01:58 +0100 Subject: [PATCH] FIX: downgrade `pygments` for `sphinx-codeautolink` --- pyproject.toml | 5 +++++ uv.lock | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1f07d86..6476b93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -444,3 +444,8 @@ description = "Run all notebooks with pytest" allowlist_externals = ["pre-commit"] commands = [["pre-commit", "run", "--all-files", {replace = "posargs", extend = true}]] description = "Perform all linting, formatting, and spelling checks" + +[tool.uv] +constraint-dependencies = [ + "pygments!=2.19.*", # https://github.com/felix-hilden/sphinx-codeautolink/issues/152 +] diff --git a/uv.lock b/uv.lock index f408493..82e68c6 100644 --- a/uv.lock +++ b/uv.lock @@ -7,6 +7,9 @@ resolution-markers = [ "python_full_version < '3.10'", ] +[manifest] +constraints = [{ name = "pygments", specifier = "!=2.19.*" }] + [[package]] name = "accessible-pygments" version = "0.0.5" @@ -2770,11 +2773,11 @@ wheels = [ [[package]] name = "pygments" -version = "2.19.1" +version = "2.18.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/7c/2d/c3338d48ea6cc0feb8446d8e6937e1408088a72a39937982cc6111d17f84/pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f", size = 4968581 } +sdist = { url = "https://files.pythonhosted.org/packages/8e/62/8336eff65bcbc8e4cb5d05b55faf041285951b6e80f33e2bff2024788f31/pygments-2.18.0.tar.gz", hash = "sha256:786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199", size = 4891905 } wheels = [ - { url = "https://files.pythonhosted.org/packages/8a/0b/9fcc47d19c48b59121088dd6da2488a49d5f72dacf8262e2790a1d2c7d15/pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c", size = 1225293 }, + { url = "https://files.pythonhosted.org/packages/f7/3f/01c8b82017c199075f8f788d0d906b9ffbbc5a47dc9918a945e13d5a2bda/pygments-2.18.0-py3-none-any.whl", hash = "sha256:b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a", size = 1205513 }, ] [[package]]