Your message dated Mon, 24 Aug 2026 17:08:09 +0000
with message-id <[email protected]>
and subject line Bug#1144936: fixed in python-libcst 1.8.6-3
has caused the Debian Bug report #1144936,
regarding python-libcst: port to annotate-snippets 0.12
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1144936: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1144936
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-libcst
Version: 1.8.6-2
Severity: important
Tags: patch
User: [email protected]
Usertags: annotate-snippets-0.12
X-Debbugs-Cc: [email protected]

Dear maintainer,

I am preparing a rust-annotate-snippets transition to 0.12, which will likely 
be uploaded in the coming days.

python-libcst depends on annotate-snippets 0.11, so it needs a dependency bump 
and a small port.

I have attached a debdiff fixing this.

Best regards,
Simon Quigley
[email protected]
diff -Nru python-libcst-1.8.6/debian/changelog 
python-libcst-1.8.6/debian/changelog
--- python-libcst-1.8.6/debian/changelog        2026-04-18 19:52:06.000000000 
-0500
+++ python-libcst-1.8.6/debian/changelog        2026-08-20 11:05:40.000000000 
-0500
@@ -1,3 +1,10 @@
+python-libcst (1.8.6-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add annotate-snippets-0.12.patch to port to annotate-snippets 0.12.
+
+ -- Simon Quigley <[email protected]>  Thu, 20 Aug 2026 11:05:40 -0500
+
 python-libcst (1.8.6-2) unstable; urgency=medium
 
   [ Carl Keinath ]
diff -Nru python-libcst-1.8.6/debian/control python-libcst-1.8.6/debian/control
--- python-libcst-1.8.6/debian/control  2026-04-18 19:52:06.000000000 -0500
+++ python-libcst-1.8.6/debian/control  2026-08-20 11:01:00.000000000 -0500
@@ -22,7 +22,7 @@
                python3-wheel,
                python3-yaml (>= 5.2),
                rustc:native (>= 1.70),
-               librust-annotate-snippets-0.11+default-dev (>= 0.11.5),
+               librust-annotate-snippets-0.12+default-dev,
                librust-libcst-derive-1+default-dev (>= 1.8.6-~~),
                librust-memchr-2+default-dev (>= 2.7.4),
                librust-paste-1+default-dev (>= 1.0.15),
diff -Nru python-libcst-1.8.6/debian/patches/annotate-snippets-0.12.patch 
python-libcst-1.8.6/debian/patches/annotate-snippets-0.12.patch
--- python-libcst-1.8.6/debian/patches/annotate-snippets-0.12.patch     
1969-12-31 18:00:00.000000000 -0600
+++ python-libcst-1.8.6/debian/patches/annotate-snippets-0.12.patch     
2026-08-20 11:05:40.000000000 -0500
@@ -0,0 +1,64 @@
+Description: Relax annotate-snippets to 0.12
+Author: Simon Quigley <[email protected]>
+Origin: vendor
+Forwarded: no
+Last-Update: 2026-08-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/native/libcst/Cargo.toml
++++ b/native/libcst/Cargo.toml
+@@ -39,7 +39,7 @@ paste = "1.0.15"
+ pyo3 = { version = "0.28", optional = true }
+ thiserror = "2.0.12"
+ peg = "0.8.5"
+-annotate-snippets = "0.11.5"
++annotate-snippets = "0.12"
+ regex = "1.11.2"
+ memchr = "2.7.4"
+ libcst_derive = { path = "../libcst_derive", version = "1.8.6" }
+--- a/native/libcst/src/lib.rs
++++ b/native/libcst/src/lib.rs
+@@ -91,7 +91,7 @@ fn bol_offset(source: &str, n: i32) -> u
+ pub fn prettify_error(err: ParserError, label: &str) -> std::string::String {
+     match err {
+         ParserError::ParserError(e, module_text) => {
+-            use annotate_snippets::{Level, Renderer, Snippet};
++            use annotate_snippets::{AnnotationKind, Level, Renderer, Snippet};
+ 
+             let loc = e.location;
+             let context = 1;
+@@ -113,17 +113,23 @@ pub fn prettify_error(err: ParserError,
+                 end
+             };
+             Renderer::styled()
+-                .render(
+-                    Level::Error.title(label).snippet(
+-                        Snippet::source(source)
+-                            .line_start(line_start)
+-                            .fold(false)
+-                            
.annotations(vec![Level::Error.span(start..end).label(&format!(
+-                                "expected {} {} -> {}",
+-                                e.expected, loc.start_pos, loc.end_pos
+-                            ))]),
+-                    ),
+-                )
++                .render(&[
++                    Level::ERROR
++                        .primary_title(label)
++                        .element(
++                            Snippet::source(source)
++                                .line_start(line_start)
++                                .fold(false)
++                                .annotations(vec![
++                                    AnnotationKind::Primary
++                                        .span(start..end)
++                                        .label(&format!(
++                                            "expected {} {} -> {}",
++                                            e.expected, loc.start_pos, 
loc.end_pos
++                                        )),
++                                ]),
++                        ),
++                ])
+                 .to_string()
+         }
+         e => format!("Parse error for {}: {}", label, e),
diff -Nru python-libcst-1.8.6/debian/patches/series 
python-libcst-1.8.6/debian/patches/series
--- python-libcst-1.8.6/debian/patches/series   2026-04-18 19:52:06.000000000 
-0500
+++ python-libcst-1.8.6/debian/patches/series   2026-08-20 11:01:21.000000000 
-0500
@@ -2,3 +2,4 @@
 chic-api
 Cargo.toml-Relax-criterion-to-0.5.1.patch
 pyo3-0.28
+annotate-snippets-0.12.patch

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: python-libcst
Source-Version: 1.8.6-3
Done: Jelmer Vernooij <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-libcst, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jelmer Vernooij <[email protected]> (supplier of updated python-libcst package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 24 Aug 2026 17:12:24 +0100
Source: python-libcst
Architecture: source
Version: 1.8.6-3
Distribution: unstable
Urgency: medium
Maintainer: Jelmer Vernooij <[email protected]>
Changed-By: Jelmer Vernooij <[email protected]>
Closes: 1144936
Changes:
 python-libcst (1.8.6-3) unstable; urgency=medium
 .
   [ Simon Quigley ]
   * Add annotate-snippets-0.12.patch to port to annotate-snippets 0.12.
     Closes: #1144936
 .
   [ Jelmer Vernooij ]
   * Set upstream metadata fields: Documentation.
   * Remove redundant Priority: optional from source stanza.
   * Reorder Files paragraphs in debian/copyright by directory depth.
Checksums-Sha1:
 c5e4fe51059f29a0533407fd58cf173671271da3 2399 python-libcst_1.8.6-3.dsc
 4b85163ff91ea7884d93d0443f2485cb7021c40f 7072 
python-libcst_1.8.6-3.debian.tar.xz
 fedd6fbb389e0d22b709d49d6f3d6bddb7d884b0 31178 
python-libcst_1.8.6-3_source.buildinfo
Checksums-Sha256:
 ab80e43f9343ed1e6cd34680b52f528976ac89801e8afa2fcab0f23da67de27f 2399 
python-libcst_1.8.6-3.dsc
 2ab233d6fd300944d6b0ac9565171df61c9c45eacc96b246668130ae4ea6f4ab 7072 
python-libcst_1.8.6-3.debian.tar.xz
 1bf4b9eb3febf0c0fefd81df26d1419229ac513775155e3e4a07b389478906ac 31178 
python-libcst_1.8.6-3_source.buildinfo
Files:
 4d9dae5522faecc3006cca5133ccb3af 2399 python optional python-libcst_1.8.6-3.dsc
 e6cb508a41ba5e7ac14580c0209794aa 7072 python optional 
python-libcst_1.8.6-3.debian.tar.xz
 5ae57fb553164e3e973751f79bac383f 31178 python optional 
python-libcst_1.8.6-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEgIoEfJX3ae+y722SMG8hYYBCUGYFAmqMdsYACgkQMG8hYYBC
UGZzFQf+LGqAhewBmfw/0eR9PZu4CEBYIN+LgvW+UCcrZUKG1Dgp7Ji8GuOx3Xg8
nle165jDDOhzuWL87cR9/LPKoz9gTWE2ZXOTbETgIFYTx1U8yAv4oo83TWkQNUpz
1T6M5jGD51Lzd0aLVj3DuMU4AGmG2ZjHVG8CEI+5Fpw/wpzBwcOtKtw9Wh7sbWro
vro5LyGETz0Xvl+tI2X/TehziePcTLb07OtpJzXICbUhp52OXAIEX3V8Q0QXqoTX
5L2IzUy3S9QkP8KdwTl1exrWGu6HGGXWrSOTvw6nzyL/Ok8JXeFvfX6GCvX3ZnhK
+KhLOutbb3NHEDAb9+p6S8rUg9n0Uw==
=KqW3
-----END PGP SIGNATURE-----

Attachment: pgpWtjh6s8Fy9.pgp
Description: PGP signature


--- End Message ---

Reply via email to