Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-mailman for openSUSE:Factory
checked in at 2026-09-17 15:20:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mailman (Old)
and /work/SRC/openSUSE:Factory/.python-mailman.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mailman"
Thu Sep 17 15:20:15 2026 rev:36 rq:1378334 version:3.3.10
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-mailman/python-mailman.changes
2025-12-29 15:18:34.671383787 +0100
+++
/work/SRC/openSUSE:Factory/.python-mailman.new.383539/python-mailman.changes
2026-09-17 15:21:39.517615062 +0200
@@ -1,0 +2,8 @@
+Wed Sep 16 08:30:22 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch use-header-obj-directly.patch
+ * Pass a Header object as is to decode_header()
+- Add patch support-click-8.4.patch:
+ * Support changes required for Click 8.4.
+
+-------------------------------------------------------------------
New:
----
_scmsync.obsinfo
build.specials.obscpio
support-click-8.4.patch
use-header-obj-directly.patch
----------(New B)----------
New: * Pass a Header object as is to decode_header()
- Add patch support-click-8.4.patch:
* Support changes required for Click 8.4.
New:
- Add patch use-header-obj-directly.patch
* Pass a Header object as is to decode_header()
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-mailman.spec ++++++
--- /var/tmp/diff_new_pack.y6XfRL/_old 2026-09-17 15:21:42.074722314 +0200
+++ /var/tmp/diff_new_pack.y6XfRL/_new 2026-09-17 15:21:42.078722482 +0200
@@ -87,11 +87,12 @@
#
# PATCH-FIX-UPSTREAM mailman-fix-python-313-posixpath.patch
https://gitlab.com/mailman/mailman/-/commit/685d9a7bdbd382d9e8d4a2da74bd973e93356e05.patch
Patch0: mailman-fix-python-313-posixpath.patch
-#
-BuildRequires: %{python_module pdm}
+# PATCH-FIX-UPSTREAM
https://gitlab.com/mailman/mailman/-/commit/8e60f319009726c0014c2f2b7b3955c4fcb3d1ee
+Patch1: use-header-obj-directly.patch
+# PATCH-FIX-UPSTREAM Based on
https://gitlab.com/mailman/mailman/-/merge_requests/1526
+Patch2: support-click-8.4.patch
BuildRequires: %{python_module pdm-backend}
BuildRequires: %{python_module pip}
-BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: sysuser-tools
++++++ _scmsync.obsinfo ++++++
mtime: 1789547443
commit: 61b3fe97a98d92e745d29f0eed17d0230cd5324ddc4945abadcca2a12cedaf02
url: https://src.opensuse.org/python-mailman/python-mailman
revision: 61b3fe97a98d92e745d29f0eed17d0230cd5324ddc4945abadcca2a12cedaf02
trackingbranch: main
projectscmsync: https://src.opensuse.org/python-mailman/_ObsPrj
++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore 2026-09-16 10:30:43.000000000 +0200
@@ -0,0 +1 @@
+.osc
++++++ support-click-8.4.patch ++++++
>From a883f3d7a79737eed78fc7cdb0b1a8c0597b2ebc Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Tue, 15 Sep 2026 14:25:03 +1000
Subject: [PATCH] Remove upper pin of click
Since click is pinned, we don't notice failures when a new version is
released. Remove the pin, and update the two tests that fail with Click
8.4.
---
pyproject.toml | 2 +-
src/mailman/bin/tests/test_mailman.py | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/mailman/bin/tests/test_mailman.py
b/src/mailman/bin/tests/test_mailman.py
index c39a5c803..0cf0eaab7 100644
--- a/src/mailman/bin/tests/test_mailman.py
+++ b/src/mailman/bin/tests/test_mailman.py
@@ -66,7 +66,10 @@ class TestMailmanCommand(unittest.TestCase):
# "main" instead of "mailman" because of the way the click runner
# works. It does actually show the correct program when run from the
# command line.
- self.assertEqual(lines[0], 'Usage: main [OPTIONS] COMMAND [ARGS]...')
+ self.assertRegex(
+ lines[0],
+ r'^Usage: main \[OPTIONS\] \[?COMMAND\]? \[ARGS\]\.\.\.$'
+ )
# The help output includes a list of subcommands, in sorted order.
commands = {}
add_components('commands', ICLISubCommand, commands)
@@ -85,7 +88,10 @@ class TestMailmanCommand(unittest.TestCase):
# "main" instead of "mailman" because of the way the click runner
# works. It does actually show the correct program when run from the
# command line.
- self.assertEqual(lines[0], 'Usage: main [OPTIONS] COMMAND [ARGS]...')
+ self.assertRegex(
+ lines[0],
+ r'^Usage: main \[OPTIONS\] \[?COMMAND\]? \[ARGS\]\.\.\.$'
+ )
@patch('mailman.bin.mailman.os')
@patch('mailman.bin.mailman.initialize')
--
GitLab
++++++ use-header-obj-directly.patch ++++++
>From 8e60f319009726c0014c2f2b7b3955c4fcb3d1ee Mon Sep 17 00:00:00 2001
From: SATOH Fumiyasu <[email protected]>
Date: Fri, 3 Apr 2026 17:10:50 +0900
Subject: [PATCH] refactor: subject_prefix: Pass a Header object as is to
decode_header()
email.header.decode_header() can take a Header object.
---
src/mailman/handlers/subject_prefix.py | 6 +++---
src/mailman/handlers/tests/test_subject_prefix.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mailman/handlers/subject_prefix.py
b/src/mailman/handlers/subject_prefix.py
index ffaa50e9c..ff8d9fe26 100644
--- a/src/mailman/handlers/subject_prefix.py
+++ b/src/mailman/handlers/subject_prefix.py
@@ -35,7 +35,7 @@ EMPTYSTRING = ''
def ascii_header(mlist, msgdata, subject, prefix, prefix_pattern, ws):
if mlist.preferred_language.charset not in ASCII_CHARSETS:
return None
- for chunk, charset in decode_header(subject.encode()):
+ for chunk, charset in decode_header(subject):
if charset not in ASCII_CHARSETS:
return None
subject_text = EMPTYSTRING.join(str(subject).splitlines())
@@ -67,7 +67,7 @@ def ascii_header(mlist, msgdata, subject, prefix,
prefix_pattern, ws):
def all_same_charset(mlist, msgdata, subject, prefix, prefix_pattern, ws):
list_charset = mlist.preferred_language.charset
chunks = []
- for chunk, charset in decode_header(subject.encode()):
+ for chunk, charset in decode_header(subject):
if charset is None:
charset = 'us-ascii'
if isinstance(chunk, str):
@@ -113,7 +113,7 @@ def all_same_charset(mlist, msgdata, subject, prefix,
prefix_pattern, ws):
def mixed_charsets(mlist, msgdata, subject, prefix, prefix_pattern, ws):
list_charset = mlist.preferred_language.charset
- chunks = decode_header(subject.encode())
+ chunks = decode_header(subject)
# This code was:
# if len(chunks) == 0:
# with _.using(mlist.preferred_language.code):
diff --git a/src/mailman/handlers/tests/test_subject_prefix.py
b/src/mailman/handlers/tests/test_subject_prefix.py
index 0fefaf673..01675abf5 100644
--- a/src/mailman/handlers/tests/test_subject_prefix.py
+++ b/src/mailman/handlers/tests/test_subject_prefix.py
@@ -283,7 +283,7 @@ class TestSubjectPrefix(unittest.TestCase):
decoded = decode_header(msg['Subject'])
self.assertEqual(decoded,
[(b'[Test] ', 'us-ascii'),
- (b'\xd6\xd0\xce\xc4', 'eucgb2312_cn')])
+ (b'\xd6\xd0\xce\xc4', 'gb2312')])
def test_non_ascii_list_folded_subject(self):
# Test a folded subject header on a list with non-ascii
--
GitLab