public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Steve Traylen <steve.traylen@cern.ch>
To: git-commits@fedoraproject.org
Subject: [rpms/python-cmd2] rawhide: Update to v4.0.0
Date: Sun, 07 Jun 2026 09:07:00 GMT [thread overview]
Message-ID: <178082322047.1.9647731192565198015.rpms-python-cmd2-bf614dcbc0bd@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-cmd2
Branch : rawhide
Commit : bf614dcbc0bd1e4b6931420fe214b6e64d72a583
Author : Steve Traylen <steve.traylen@cern.ch>
Date : 2026-06-07T10:38:40+02:00
Stats : +4/-44 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-cmd2/c/bf614dcbc0bd1e4b6931420fe214b6e64d72a583?branch=rawhide
Log:
Update to v4.0.0
- Resolves: rhbz#2485478
---
diff --git a/0001-Fix-Python-3.15-compat-accept-kwargs-in-_get_formatt.patch b/0001-Fix-Python-3.15-compat-accept-kwargs-in-_get_formatt.patch
deleted file mode 100644
index ea9e8d8..0000000
--- a/0001-Fix-Python-3.15-compat-accept-kwargs-in-_get_formatt.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 54fd7aeb533e07f0dd4a03d33cd315b0c8572916 Mon Sep 17 00:00:00 2001
-From: rpm-build <rpm-build>
-Date: Wed, 6 May 2026 14:48:35 +0200
-Subject: [PATCH] Fix Python 3.15 compat: accept **kwargs in _get_formatter()
-
-Python 3.15 changed argparse internals to pass file= as a keyword
-argument when calling _get_formatter() (as part of ongoing colour/
-terminal-detection work). Cmd2ArgumentParser's override did not accept
-this keyword, causing a TypeError that broke all help and usage output.
-
-Upstream fix (using a different approach with _thread_locals):
-https://github.com/python-cmd2/cmd2/blob/main/.../argparse_utils.py#L874
----
- cmd2/argparse_custom.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
-index bfcdf38..457fdbc 100644
---- a/cmd2/argparse_custom.py
-+++ b/cmd2/argparse_custom.py
-@@ -1369,9 +1369,9 @@ class Cmd2ArgumentParser(argparse.ArgumentParser):
-
- self.exit(2, f'{formatted_message}\n')
-
-- def _get_formatter(self) -> Cmd2HelpFormatter:
-+ def _get_formatter(self, **kwargs: Any) -> Cmd2HelpFormatter:
- """Override with customizations for Cmd2HelpFormatter."""
-- return cast(Cmd2HelpFormatter, super()._get_formatter())
-+ return cast(Cmd2HelpFormatter, super()._get_formatter(**kwargs))
-
- def format_help(self) -> str:
- """Override to add a newline."""
---
-2.54.0
-
diff --git a/python-cmd2.spec b/python-cmd2.spec
index cdccdd2..e52d389 100644
--- a/python-cmd2.spec
+++ b/python-cmd2.spec
@@ -1,18 +1,13 @@
%global pypi_name cmd2
Name: python-%{pypi_name}
-Version: 3.5.1
-Release: %autorelease
+Version: 4.0.0
+Release: 1%{?dist}
Summary: Extra features for standard library's cmd module
License: MIT
URL: https://pypi.python.org/pypi/cmd2
-Source0: %{pypi_source}
-
-# This is fixed upstream but with a much bigger patch and re-org
-# https://github.com/python-cmd2/cmd2/commit/79c984ac3d937fff8e92c5848fe5b7a229836ec6
-# drop with next release.
-Patch0: 0001-Fix-Python-3.15-compat-accept-kwargs-in-_get_formatt.patch
+Source0: https://files.pythonhosted.org/packages/source/c/cmd2/cmd2-%{version}.tar.gz
BuildArch: noarch
diff --git a/sources b/sources
index deadac9..a5e879c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (cmd2-3.5.1.tar.gz) = 30414090390c1087173d2a259b5af2dc12228ab16892ea8617ec4168882565ebeef7e76a2c86b6e614fe45e3e454f74c49b633358b5da84d57365e7e70432054
+SHA512 (cmd2-4.0.0.tar.gz) = a1df4bb215a098e2902826ff4686ec10664a4b9d8e0433c6103ba395f325ae56d8c4fa2d83d770b4cc9e4c1e5b456fa03a6bac6af9b7f8398a5fc61394cf15f7
reply other threads:[~2026-06-07 9:07 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=178082322047.1.9647731192565198015.rpms-python-cmd2-bf614dcbc0bd@fedoraproject.org \
--to=steve.traylen@cern.ch \
--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