# HG changeset patch # User Franz Glasner # Date 1777382166 -7200 # Node ID 3ccfa7f45044224b93de33eb81fee607bb442c79 # Parent 9ba1584d4b4a7851b180a019a7f02705c5680412 Minimum Pygments version is 2.2 diff -r 9ba1584d4b4a -r 3ccfa7f45044 pyproject.toml --- a/pyproject.toml Tue Apr 28 15:02:15 2026 +0200 +++ b/pyproject.toml Tue Apr 28 15:16:06 2026 +0200 @@ -26,7 +26,13 @@ "Topic :: Utilities", ] dependencies = [ - "Pygments>=2.15", + # + # - Tests need this version for "load_XXX_from_file()" + # - But Sphinx yields errors on Python 2.7 (also with Pygments 2.0.1) + # + "Pygments>=2.2", + # Python 3.8+ and also works with Sphinx + # "Pygments>=2.15", ] dynamic = [ "readme", diff -r 9ba1584d4b4a -r 3ccfa7f45044 requirements.txt --- a/requirements.txt Tue Apr 28 15:02:15 2026 +0200 +++ b/requirements.txt Tue Apr 28 15:16:06 2026 +0200 @@ -1,1 +1,5 @@ -Pygments>=2.15 +# +# - Tests need this version for "load_XXX_from_file()" +# - But Sphinx yields errors on Python 2.7 (also with Pygments 2.0.1) +# +Pygments>=2.2