public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pint] rpmlint-etc: Backport fix for several failures in TestNumpyUnclassified
Date: Sat, 12 Sep 2026 10:21:53 GMT [thread overview]
Message-ID: <178920851300.1.12006762883460724700.rpms-python-pint-44323f33dc83@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-pint
Branch : rpmlint-etc
Commit : 44323f33dc83aad9ac060c8d622b467cee647863
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2023-10-30T12:32:46-04:00
Stats : +33/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-pint/c/44323f33dc83aad9ac060c8d622b467cee647863?branch=rpmlint-etc
Log:
Backport fix for several failures in TestNumpyUnclassified
---
diff --git a/0001-add-min-and-max-to-the-array-function-overrides.patch b/0001-add-min-and-max-to-the-array-function-overrides.patch
new file mode 100644
index 0000000..90d4b19
--- /dev/null
+++ b/0001-add-min-and-max-to-the-array-function-overrides.patch
@@ -0,0 +1,25 @@
+From 9ace880dfa2a57772f1c2cac1316338995baf1fb Mon Sep 17 00:00:00 2001
+From: Justus Magin <keewis@posteo.de>
+Date: Tue, 7 Mar 2023 13:24:37 +0100
+Subject: [PATCH] add `min` and `max` to the array function overrides
+
+---
+ pint/numpy_func.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/pint/numpy_func.py b/pint/numpy_func.py
+index e09decb..ccc99b9 100644
+--- a/pint/numpy_func.py
++++ b/pint/numpy_func.py
+@@ -805,6 +805,8 @@ for func_str, unit_arguments, wrap_output in [
+ ("broadcast_to", ["array"], True),
+ ("amax", ["a", "initial"], True),
+ ("amin", ["a", "initial"], True),
++ ("max", ["a", "initial"], True),
++ ("min", ["a", "initial"], True),
+ ("searchsorted", ["a", "v"], False),
+ ("isclose", ["a", "b"], False),
+ ("nan_to_num", ["x", "nan", "posinf", "neginf"], True),
+--
+2.41.0
+
diff --git a/python-pint.spec b/python-pint.spec
index a9fc7ec..f4d8ce5 100644
--- a/python-pint.spec
+++ b/python-pint.spec
@@ -20,6 +20,14 @@ Source0: %{pypi_source Pint}
# https://github.com/hgrecco/pint/issues/1825
Patch: %{url}/commit/b3b18277ecc682bff7ca1fa9e48992f7ec68e47f.patch
+# add min and max to the array function overrides
+# https://github.com/hgrecco/pint/commit/1b2b0592f88a1c9fdf9b5649ebade19fa81adea4
+#
+# Fixes several failures in TestNumpyUnclassified
+#
+# Cherry-picked to 0.19.
+Patch: 0001-add-min-and-max-to-the-array-function-overrides.patch
+
BuildArch: noarch
%global _description %{expand:
reply other threads:[~2026-09-12 10:21 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=178920851300.1.12006762883460724700.rpms-python-pint-44323f33dc83@fedoraproject.org \
--to=code@musicinmybrain.net \
--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