Debian Codegraph @

debian/patches/revert-pygments-2.21.patch

raw
1 From: Colin Watson <[email protected]>
2 Date: Sun, 27 Sep 2026 13:39:33 +0100
3 Subject: Revert pygments 2.21 update
4
5 That version isn't in Debian unstable yet. We can drop this patch once
6 it is.
7
8 Last-Update: 2026-09-27
9 ---
10 pyproject.toml | 2 +-
11 tests/test_description.py | 2 +-
12 2 files changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/pyproject.toml b/pyproject.toml
15 index f83e49e..e8de1e2 100644
16 --- a/pyproject.toml
17 +++ b/pyproject.toml
18 @@ -65,7 +65,7 @@ optional = [
19 "legacy-cgi; python_version>='3.13'",
20 "markdown>=3.3.7",
21 "psycopg[binary]>=3.1.8",
22 - "pygments==2.21.*",
23 + "pygments>=2.17,<2.21",
24 "pyyaml>=5.3.1,<6.1",
25 "requests",
26 "uritemplate",
27 diff --git a/tests/test_description.py b/tests/test_description.py
28 index 71a3a86..7fb93ed 100644
29 --- a/tests/test_description.py
30 +++ b/tests/test_description.py
31 @@ -41,7 +41,7 @@ MARKDOWN_DOCSTRING = """<h2 id="an-example-docstring">an example docstring</h2>
32 </code></pre>
33 <p>indented</p>
34 <h2 id="hash-style-header">hash style header</h2>
35 -<div class="highlight"><pre><span></span><span class="p">[{</span><br /><span class="w"> </span><span class="nt">"alpha"</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><br /><span class="w"> </span><span class="nt">"beta"</span><span class="p">:</span><span class="w"> </span><span class="s2">"this is a string"</span><br /><span class="p">}]</span><br /></pre></div>
36 +<div class="highlight"><pre><span></span><span class="p">[{</span><br /><span class="w"> </span><span class="nt">&quot;alpha&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><br /><span class="w"> </span><span class="nt">&quot;beta&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;this is a string&quot;</span><br /><span class="p">}]</span><br /></pre></div>
37 <p><br /></p>"""
38
39