public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Karolina Surma <ksurma@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/argparse-manpage] rawhide: Fix compatibility with Python 3.15
Date: Wed, 03 Jun 2026 09:52:51 GMT [thread overview]
Message-ID: <178048037186.1.12106668930212525363.rpms-argparse-manpage-e8f983366a1e@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-03 9:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178048037186.1.12106668930212525363.rpms-argparse-manpage-e8f983366a1e@fedoraproject.org \
--to=ksurma@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox