public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/argparse-manpage] rawhide: Fix compatibility with Python 3.15
@ 2026-06-03 9:52 Karolina Surma
0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-06-03 9:52 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/argparse-manpage
Branch : rawhide
Commit : e8f983366a1e928c09c017962aafbb5e46a25f7f
Author : Karolina Surma <ksurma@redhat.com>
Date : 2026-05-22T00:02:48+02:00
Stats : +50/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/argparse-manpage/c/e8f983366a1e928c09c017962aafbb5e46a25f7f?branch=rawhide
Log:
Fix compatibility with Python 3.15
---
diff --git a/130.patch b/130.patch
new file mode 100644
index 0000000..e176e5b
--- /dev/null
+++ b/130.patch
@@ -0,0 +1,47 @@
+From 7654ed17e243816f6e4acbd8f16be2945ae07045 Mon Sep 17 00:00:00 2001
+From: Alex Muir <wamuir1212@protonmail.com>
+Date: Sat, 16 May 2026 02:20:21 -0700
+Subject: [PATCH 1/2] Changed super(HelpFormatter, self).__init__() to
+ super().__init__(prog)
+
+---
+ argparse_manpage/manpage.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/argparse_manpage/manpage.py b/argparse_manpage/manpage.py
+index b8b344c..dcb7ec1 100644
+--- a/argparse_manpage/manpage.py
++++ b/argparse_manpage/manpage.py
+@@ -362,7 +362,7 @@ def quoted(text):
+
+ class _ManpageFormatter(HelpFormatter):
+ def __init__(self, prog, old_formatter, format):
+- super(HelpFormatter, self).__init__()
++ super().__init__(prog)
+ self._prog = prog
+ self.of = old_formatter
+ assert format in ("pretty", "single-commands-section")
+
+From c9f781fd3812eebeb04408b5ff8a14b4ee40ba2f Mon Sep 17 00:00:00 2001
+From: Alex Muir <wamuir1212@protonmail.com>
+Date: Mon, 18 May 2026 19:50:24 -0700
+Subject: [PATCH 2/2] Changed super call to the explicit version for
+ capatability with python 2 and 3
+
+---
+ argparse_manpage/manpage.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/argparse_manpage/manpage.py b/argparse_manpage/manpage.py
+index dcb7ec1..828b4c2 100644
+--- a/argparse_manpage/manpage.py
++++ b/argparse_manpage/manpage.py
+@@ -362,7 +362,7 @@ def quoted(text):
+
+ class _ManpageFormatter(HelpFormatter):
+ def __init__(self, prog, old_formatter, format):
+- super().__init__(prog)
++ super(_ManpageFormatter, self).__init__(prog)
+ self._prog = prog
+ self.of = old_formatter
+ assert format in ("pretty", "single-commands-section")
diff --git a/argparse-manpage.spec b/argparse-manpage.spec
index 7290025..78a16a5 100644
--- a/argparse-manpage.spec
+++ b/argparse-manpage.spec
@@ -37,6 +37,8 @@ BuildArch: noarch
License: Apache-2.0
URL: https://github.com/praiskup/%{name}
Source0: %pypi_source %pip_module_name
+# Fix build with Python 3.15
+Patch: %{url}/pull/130.patch
%if %{with python2}
BuildRequires: python2-setuptools python2-devel
@@ -105,6 +107,7 @@ Requires: python3-setuptools
%prep
%setup -q -n %{pip_module_name}-%{version}
+%patch -P0 -p1
%if %{with pyproject}
%generate_buildrequires
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-03 9:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03 9:52 [rpms/argparse-manpage] rawhide: Fix compatibility with Python 3.15 Karolina Surma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox