Control: tags 1148103 + patch
Control: tags 1148103 + pending

Dear maintainer,

I've prepared an NMU for click-man (versioned as 0.5.2-0.2) and
uploaded it to DELAYED/5. Please feel free to tell me if I
should cancel it.

-- 
Best,
Tianyu Chen
diffstat for click-man-0.5.2 click-man-0.5.2

 changelog                                         |    7 ++++
 patches/0001-Fix-entry-point-version-lookup.patch |   35 ++++++++++++++++++++++
 patches/series                                    |    1 
 3 files changed, 43 insertions(+)

diff -Nru click-man-0.5.2/debian/changelog click-man-0.5.2/debian/changelog
--- click-man-0.5.2/debian/changelog	2026-08-31 20:09:11.000000000 +0800
+++ click-man-0.5.2/debian/changelog	2026-09-25 13:32:09.000000000 +0800
@@ -1,3 +1,10 @@
+click-man (0.5.2-0.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix entry point version lookup (Closes: #1148103)
+
+ -- Tianyu Chen <[email protected]>  Fri, 25 Sep 2026 13:32:09 +0800
+
 click-man (0.5.2-0.1) unstable; urgency=medium
 
   * Non-maintainer Upload
diff -Nru click-man-0.5.2/debian/patches/0001-Fix-entry-point-version-lookup.patch click-man-0.5.2/debian/patches/0001-Fix-entry-point-version-lookup.patch
--- click-man-0.5.2/debian/patches/0001-Fix-entry-point-version-lookup.patch	1970-01-01 08:00:00.000000000 +0800
+++ click-man-0.5.2/debian/patches/0001-Fix-entry-point-version-lookup.patch	2026-09-25 13:14:29.000000000 +0800
@@ -0,0 +1,35 @@
+From: Tianyu Chen <[email protected]>
+Date: Thu, 24 Sep 2026 03:11:41 +0800
+Subject: Fix entry point version lookup
+
+---
+ click_man/shell.py  | 2 +-
+ tests/test_shell.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/click_man/shell.py b/click_man/shell.py
+index cb15d94..8e292d0 100644
+--- a/click_man/shell.py
++++ b/click_man/shell.py
+@@ -77,7 +77,7 @@ def cli(target, name, man_version, man_date):
+         pass
+ 
+     if not man_version:
+-        man_version = entry_point.version
++        man_version = entry_point.dist.version
+ 
+     if man_date:
+         try:
+diff --git a/tests/test_shell.py b/tests/test_shell.py
+index 60e55fe..21b1e86 100644
+--- a/tests/test_shell.py
++++ b/tests/test_shell.py
+@@ -35,7 +35,7 @@ def test_cli__valid(mock_entry_point, mock_echo, mock_write):
+     fake_version = '1.2.3'
+     entry_point = mock.Mock(spec=importlib.metadata.EntryPoint)
+     entry_point.load.return_value = fake_command
+-    entry_point.version = fake_version
++    entry_point.dist.version = fake_version
+ 
+     mock_entry_point.return_value = entry_point
+ 
diff -Nru click-man-0.5.2/debian/patches/series click-man-0.5.2/debian/patches/series
--- click-man-0.5.2/debian/patches/series	1970-01-01 08:00:00.000000000 +0800
+++ click-man-0.5.2/debian/patches/series	2026-09-25 13:14:29.000000000 +0800
@@ -0,0 +1 @@
+0001-Fix-entry-point-version-lookup.patch

Reply via email to