Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-rich-argparse for
openSUSE:Factory checked in at 2026-02-21 21:00:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rich-argparse (Old)
and /work/SRC/openSUSE:Factory/.python-rich-argparse.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rich-argparse"
Sat Feb 21 21:00:32 2026 rev:3 rq:1333857 version:1.7.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-rich-argparse/python-rich-argparse.changes
2026-02-18 17:04:54.128405966 +0100
+++
/work/SRC/openSUSE:Factory/.python-rich-argparse.new.1977/python-rich-argparse.changes
2026-02-21 21:00:44.353885684 +0100
@@ -1,0 +2,5 @@
+Thu Feb 19 06:36:39 UTC 2026 - Markéta Machová <[email protected]>
+
+- Add upstream py3141.patch to fix tests on Python 3.14.1+
+
+-------------------------------------------------------------------
New:
----
py3141.patch
----------(New B)----------
New:
- Add upstream py3141.patch to fix tests on Python 3.14.1+
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-rich-argparse.spec ++++++
--- /var/tmp/diff_new_pack.wY8Ka7/_old 2026-02-21 21:00:45.409928978 +0100
+++ /var/tmp/diff_new_pack.wY8Ka7/_new 2026-02-21 21:00:45.413929142 +0100
@@ -25,6 +25,8 @@
Source:
https://files.pythonhosted.org/packages/source/r/rich-argparse/rich_argparse-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-tests.patch
https://github.com/hamdanal/rich-argparse/pull/178
Patch0: fix-tests.patch
+# PATCH-FIX-UPSTREAM py3141.patch
https://github.com/hamdanal/rich-argparse/pull/172
+Patch1: py3141.patch
BuildRequires: %{python_module hatchling >= 1.11.0}
BuildRequires: %{python_module pip}
BuildRequires: python-rpm-macros
++++++ py3141.patch ++++++
>From b345d9c8d3841cff1ff69cc01c465b9d22ce2936 Mon Sep 17 00:00:00 2001
From: Ali Hamdan <[email protected]>
Date: Sat, 1 Nov 2025 11:20:10 +0100
Subject: [PATCH] Fix nightly tests (#172)
---
tests/test_argparse.py | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/tests/test_argparse.py b/tests/test_argparse.py
index 461ae4f..b6092fa 100644
--- a/tests/test_argparse.py
+++ b/tests/test_argparse.py
@@ -715,12 +715,20 @@ def test_subparsers_usage():
)
if sys.version_info < (3, 14): # pragma: <3.14 cover
assert orig_child2.format_usage() == "usage: PROG sp2 [-h]\n"
- else: # pragma: >=3.14 cover
- # Python 3.14 adds ANSI color codes to the default usage message
+ elif sys.version_info[:3] == (3, 14, 0): # pragma: no cover
+ # Subparsers prog broken in Python 3.14.0
+ # TODO: remove when Python 3.14.1 becomes available on GitHub Actions
assert (
orig_child2.format_usage()
== "\x1b[1;34musage:
\x1b[0m\x1b[1;35m\x1b[1;34m\x1b[0m\x1b[1;35mPROG\x1b[0m sp2\x1b[0m
[\x1b[32m-h\x1b[0m]\n"
)
+ else: # pragma: >=3.15 cover
+ # Python 3.14 adds ANSI color codes to the default usage message
+ # TODO: change to 'pragma: >=3.14 cover' when Python 3.14.1 becomes
available on GitHub Actions
+ assert (
+ orig_child2.format_usage()
+ == "\x1b[1;34musage: \x1b[0m\x1b[1;35mPROG sp2\x1b[0m
[\x1b[32m-h\x1b[0m]\n"
+ )
@pytest.mark.parametrize("ct", string.printable)