Control: tags 1120172 + patch
Control: tags 1120172 + pending

Dear maintainer,

I've prepared an NMU for python-libzim (versioned as 3.6.0-1.2) and 
uploaded it to DELAYED/2. Please feel free to tell me if I should
cancel it.

cu
Adrian
diffstat for python-libzim-3.6.0 python-libzim-3.6.0

 changelog                                                               |    7 +
 patches/0001-Drop-support-for-Python-3.9-add-support-for-Python-3.patch |   52 ++++++++++
 patches/series                                                          |    1 
 3 files changed, 60 insertions(+)

diff -Nru python-libzim-3.6.0/debian/changelog python-libzim-3.6.0/debian/changelog
--- python-libzim-3.6.0/debian/changelog	2025-01-11 16:20:21.000000000 +0200
+++ python-libzim-3.6.0/debian/changelog	2025-12-14 15:52:04.000000000 +0200
@@ -1,3 +1,10 @@
+python-libzim (3.6.0-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport upstream fix for FTBFS with Cython 3.1. (Closes: #1120172)
+
+ -- Adrian Bunk <[email protected]>  Sun, 14 Dec 2025 15:52:04 +0200
+
 python-libzim (3.6.0-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru python-libzim-3.6.0/debian/patches/0001-Drop-support-for-Python-3.9-add-support-for-Python-3.patch python-libzim-3.6.0/debian/patches/0001-Drop-support-for-Python-3.9-add-support-for-Python-3.patch
--- python-libzim-3.6.0/debian/patches/0001-Drop-support-for-Python-3.9-add-support-for-Python-3.patch	1970-01-01 02:00:00.000000000 +0200
+++ python-libzim-3.6.0/debian/patches/0001-Drop-support-for-Python-3.9-add-support-for-Python-3.patch	2025-12-14 15:52:04.000000000 +0200
@@ -0,0 +1,52 @@
+From 71e2af1ef9cb447b641ba387b44b9c83a4b570b7 Mon Sep 17 00:00:00 2001
+From: benoit74 <[email protected]>
+Date: Tue, 4 Nov 2025 12:34:03 +0000
+Subject: Drop support for Python 3.9, add support for Python 3.14, upgrade
+ dependencies
+
+Python 3.9 is EOL and coverage 7.11.0 supports only Python >= 3.10
+---
+ tests/test_libzim_creator.py | 5 ++++-
+ tests/test_libzim_version.py | 4 ++--
+ 2 files changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/tests/test_libzim_creator.py b/tests/test_libzim_creator.py
+index cc9ef27..7bd8e04 100644
+--- a/tests/test_libzim_creator.py
++++ b/tests/test_libzim_creator.py
+@@ -373,7 +373,10 @@ def test_creator_additem(fpath, lipsum_item):
+             c.add_item(None)  # pyright: ignore [reportCallIssue, reportArgumentType]
+         with pytest.raises(RuntimeError):
+             c.add_item("hello")  # pyright: ignore [reportCallIssue, reportArgumentType]
+-        with pytest.raises(TypeError, match="takes exactly 1 positional argument"):
++        with pytest.raises(
++            TypeError,
++            match="got an unexpected keyword argument 'mimetype'",
++        ):
+             c.add_item(mimetype="text/html")  # pyright: ignore [reportCallIssue]
+ 
+ 
+diff --git a/tests/test_libzim_version.py b/tests/test_libzim_version.py
+index 41d3d73..89de1d2 100644
+--- a/tests/test_libzim_version.py
++++ b/tests/test_libzim_version.py
+@@ -11,14 +11,14 @@ from libzim.version import (  # pyright: ignore [reportMissingModuleSource]
+ def test_version_print_version_with_stdout(capsys):
+     print_versions()
+     print("", file=sys.stdout, flush=True)
+-    stdout, stderr = capsys.readouterr()
++    stdout, _ = capsys.readouterr()
+     assert len(stdout) != 0
+ 
+ 
+ def test_version_print_version_with_stderr(capsys):
+     print_versions(sys.stderr)
+     print("", file=sys.stderr, flush=True)
+-    stdout, stderr = capsys.readouterr()
++    _, stderr = capsys.readouterr()
+     assert len(stderr) != 0
+ 
+ 
+-- 
+2.30.2
+
diff -Nru python-libzim-3.6.0/debian/patches/series python-libzim-3.6.0/debian/patches/series
--- python-libzim-3.6.0/debian/patches/series	1970-01-01 02:00:00.000000000 +0200
+++ python-libzim-3.6.0/debian/patches/series	2025-12-14 15:52:02.000000000 +0200
@@ -0,0 +1 @@
+0001-Drop-support-for-Python-3.9-add-support-for-Python-3.patch

Reply via email to