public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pint] rpmlint-etc: Backport fix for several failures in TestNumpyUnclassified
@ 2026-09-12 10:21 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-12 10:21 UTC (permalink / raw)
To: git-commits
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:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-12 10:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-12 10:21 [rpms/python-pint] rpmlint-etc: Backport fix for several failures in TestNumpyUnclassified Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox