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 2023-02-08 17:20:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tensorpac (Old)
 and      /work/SRC/openSUSE:Factory/.python-tensorpac.new.4462 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tensorpac"

Wed Feb  8 17:20:34 2023 rev:6 rq:1063760 version:1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tensorpac/python-tensorpac.changes        
2022-02-26 17:02:56.663544112 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-tensorpac.new.4462/python-tensorpac.changes  
    2023-02-08 17:21:01.386158150 +0100
@@ -1,0 +2,6 @@
+Wed Feb  8 09:35:20 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add numpy-1.24.patch to make it compatible with numpy >= 1.24
+  gh#EtienneCmb/tensorpac#17
+
+-------------------------------------------------------------------

New:
----
  numpy-1.24.patch

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

Other differences:
------------------
++++++ python-tensorpac.spec ++++++
--- /var/tmp/diff_new_pack.C9zb3n/_old  2023-02-08 17:21:01.930160820 +0100
+++ /var/tmp/diff_new_pack.C9zb3n/_new  2023-02-08 17:21:01.942160879 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-tensorpac
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # 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 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 %define skip_python36 1
 Name:           python-tensorpac
@@ -26,6 +25,8 @@
 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
+Patch0:         numpy-1.24.patch
 BuildRequires:  %{python_module joblib}
 BuildRequires:  %{python_module numpy}
 BuildRequires:  %{python_module setuptools}
@@ -51,7 +52,7 @@
 (PAC) using tensors and parallel computing.
 
 %prep
-%setup -q -n tensorpac-%{version}
+%autosetup -p1 -n tensorpac-%{version}
 chmod a-x LICENSE README.rst
 # upstream tarball contains py3.7 cache files
 rm -rf */__pycache__
@@ -79,6 +80,7 @@
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/tensorpac
+%{python_sitelib}/tensorpac*-info
 
 %changelog

++++++ numpy-1.24.patch ++++++
Index: tensorpac-1.1/tensorpac/gcmi.py
===================================================================
--- tensorpac-1.1.orig/tensorpac/gcmi.py
+++ tensorpac-1.1/tensorpac/gcmi.py
@@ -94,7 +94,7 @@ def nd_mi_gg(x, y):
     ln2 = np.log(2)
     if CONFIG['MI_BIASCORRECT']:
         vec = np.arange(1, nvarxy + 1)
-        psiterms = psi((ntrl - vec).astype(np.float) / 2.0) / 2.0
+        psiterms = psi((ntrl - vec).astype(float) / 2.0) / 2.0
         dterm = (ln2 - np.log(ntrl - 1.0)) / 2.0
         hx = hx - nvarx * dterm - psiterms[:nvarx].sum()
         hy = hy - nvary * dterm - psiterms[:nvary].sum()

Reply via email to