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-zmq] rawhide: Fix TestFrame.test_buffer_numpy on numpy 2.5
Date: Sat, 18 Jul 2026 06:02:21 GMT [thread overview]
Message-ID: <178435454131.1.7283646539599379069.rpms-python-zmq-756ad907dbde@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-zmq
Branch : rawhide
Commit : 756ad907dbdee22b5fe950a172a727304938e821
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-07-18T07:02:06+01:00
Stats : +28/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-zmq/c/756ad907dbdee22b5fe950a172a727304938e821?branch=rawhide
Log:
Fix TestFrame.test_buffer_numpy on numpy 2.5
---
diff --git a/2202.patch b/2202.patch
new file mode 100644
index 0000000..5ec4518
--- /dev/null
+++ b/2202.patch
@@ -0,0 +1,24 @@
+From 3e29bae36e71cc6ed60566a5681b58f91d9d2b20 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Sat, 18 Jul 2026 06:55:47 +0100
+Subject: [PATCH] Fix TestFrame.test_buffer_numpy on numpy 2.5
+
+https://numpy.org/doc/stable/release/2.5.0-notes.html#expired-deprecations:
+Data type alias `a` was removed in favor of `S`. (deprecated since 2.0)
+---
+ tests/test_message.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_message.py b/tests/test_message.py
+index 77de12cb0..1b77100cc 100644
+--- a/tests/test_message.py
++++ b/tests/test_message.py
+@@ -341,7 +341,7 @@ def test_buffer_numpy(self):
+ B = numpy.frombuffer(msg, A.dtype).reshape(A.shape)
+ assert_array_equal(A, B)
+
+- A = numpy.empty(shape, dtype=[('a', int), ('b', float), ('c', 'a32')])
++ A = numpy.empty(shape, dtype=[('a', int), ('b', float), ('c', 'S32')])
+ A['a'] = 1024
+ A['b'] = 1e9
+ A['c'] = 'hello there'
diff --git a/python-zmq.spec b/python-zmq.spec
index 4b3901c..91b551e 100644
--- a/python-zmq.spec
+++ b/python-zmq.spec
@@ -45,6 +45,10 @@ URL: https://zeromq.org/languages/python/
%global forgeurl https://github.com/zeromq/pyzmq
Source: %{forgeurl}/archive/v%{version}/pyzmq-%{version}.tar.gz
+# Fix TestFrame.test_buffer_numpy on numpy 2.5
+# https://github.com/zeromq/pyzmq/pull/2202
+Patch: %{forgeurl}/pull/2202.patch
+
BuildSystem: pyproject
BuildOption(generate_buildrequires): test-requirements.txt
# https://scikit-build-core.readthedocs.io/en/latest/configuration/index.html
reply other threads:[~2026-07-18 6:02 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=178435454131.1.7283646539599379069.rpms-python-zmq-756ad907dbde@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