Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-tensorpac for
openSUSE:Factory checked in at 2026-03-05 17:15:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tensorpac (Old)
and /work/SRC/openSUSE:Factory/.python-tensorpac.new.561 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tensorpac"
Thu Mar 5 17:15:28 2026 rev:8 rq:1336630 version:1.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tensorpac/python-tensorpac.changes
2025-05-09 18:53:14.325772475 +0200
+++
/work/SRC/openSUSE:Factory/.python-tensorpac.new.561/python-tensorpac.changes
2026-03-05 17:23:52.800397087 +0100
@@ -1,0 +2,6 @@
+Thu Mar 5 04:17:51 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-numpy-2.4.patch:
+ * Support numpy 2.4 changes.
+
+-------------------------------------------------------------------
New:
----
support-numpy-2.4.patch
----------(New B)----------
New:
- Add patch support-numpy-2.4.patch:
* Support numpy 2.4 changes.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-tensorpac.spec ++++++
--- /var/tmp/diff_new_pack.ISTBaW/_old 2026-03-05 17:23:53.420422871 +0100
+++ /var/tmp/diff_new_pack.ISTBaW/_new 2026-03-05 17:23:53.424423038 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-tensorpac
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
#
-%define skip_python36 1
Name: python-tensorpac
Version: 1.1
Release: 0
@@ -24,8 +23,10 @@
License: BSD-3-Clause
URL: https://etiennecmb.github.io/tensorpac/
Source:
https://github.com/EtienneCmb/tensorpac/archive/refs/tags/v%{version}.tar.gz#/tensorpac-%{version}.tar.gz
-# PATCH-FIX-OPENSUSE numpy-1.24.patch gh#EtienneCmb/tensorpac#17
+# PATCH-FIX-UPSTREAM numpy-1.24.patch gh#EtienneCmb/tensorpac#17
Patch0: numpy-1.24.patch
+# PATCH-FIX-OPENSUSE Support numpy 2.4
+Patch1: support-numpy-2.4.patch
BuildRequires: %{python_module joblib}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
@@ -55,9 +56,6 @@
%prep
%autosetup -p1 -n tensorpac-%{version}
chmod a-x LICENSE README.rst
-# upstream tarball contains py3.7 cache files
-rm -rf */__pycache__
-rm -rf */*/__pycache__
%build
%pyproject_wheel
++++++ support-numpy-2.4.patch ++++++
Index: tensorpac-1.1/tensorpac/pac.py
===================================================================
--- tensorpac-1.1.orig/tensorpac/pac.py
+++ tensorpac-1.1/tensorpac/pac.py
@@ -397,7 +397,7 @@ class Pac(_PacObj, _PacPlt):
# compute surrogates (if needed)
if compute_surro:
if random_state is None:
- random_state = int(np.random.randint(0, 10000, size=1))
+ random_state = int(np.random.randint(0, 10000,
size=1).squeeze())
logger.info(f" compute surrogates ({self.str_surro}, {n_perm} "
f"permutations, random_state={random_state})")
surro = compute_surrogates(pha, amp, self.idpac[1], fcn, n_perm,