Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-PyCBC for openSUSE:Factory 
checked in at 2024-09-16 17:43:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PyCBC (Old)
 and      /work/SRC/openSUSE:Factory/.python-PyCBC.new.29891 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-PyCBC"

Mon Sep 16 17:43:20 2024 rev:19 rq:1201360 version:2.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PyCBC/python-PyCBC.changes        
2024-08-21 23:26:22.058467500 +0200
+++ /work/SRC/openSUSE:Factory/.python-PyCBC.new.29891/python-PyCBC.changes     
2024-09-16 17:44:30.004590248 +0200
@@ -1,0 +2,6 @@
+Sun Sep 15 14:03:59 UTC 2024 - Atri Bhattacharya <badshah...@gmail.com>
+
+- Add python-PyCBC-tests-numpy-2.0-compat.patch for compatibility
+  with numpy >= 2.0 in tests.
+
+-------------------------------------------------------------------

New:
----
  python-PyCBC-tests-numpy-2.0-compat.patch

BETA DEBUG BEGIN:
  New:
- Add python-PyCBC-tests-numpy-2.0-compat.patch for compatibility
  with numpy >= 2.0 in tests.
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-PyCBC.spec ++++++
--- /var/tmp/diff_new_pack.C2Ez1m/_old  2024-09-16 17:44:30.520611588 +0200
+++ /var/tmp/diff_new_pack.C2Ez1m/_new  2024-09-16 17:44:30.520611588 +0200
@@ -36,6 +36,8 @@
 License:        GPL-3.0-or-later
 URL:            http://www.pycbc.org/
 Source0:        
https://github.com/gwastro/pycbc/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM python-PyCBC-tests-numpy-2.0-compat.patch 
badshah...@gmail.com -- Fix appending to numpy.broadcast_arrays output for 
numpy >= 2.0
+Patch1:         python-PyCBC-tests-numpy-2.0-compat.patch
 BuildRequires:  %{python_module Cython >= 0.29}
 BuildRequires:  %{python_module devel >= 3.9}
 BuildRequires:  %{python_module numpy-devel >= 1.16.0}

++++++ python-PyCBC-tests-numpy-2.0-compat.patch ++++++
---
 pycbc/conversions.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: pycbc-2.5.1/pycbc/conversions.py
===================================================================
--- pycbc-2.5.1.orig/pycbc/conversions.py
+++ pycbc-2.5.1/pycbc/conversions.py
@@ -77,7 +77,8 @@ def ensurearray(*args):
         inputs was an array.
     """
     input_is_array = any(isinstance(arg, numpy.ndarray) for arg in args)
-    args = numpy.broadcast_arrays(*args)
+    # For numpy >= 2, broadcast_arrays returns tuple instead of list
+    args = list(numpy.broadcast_arrays(*args))
     args.append(input_is_array)
     return args
 

Reply via email to