Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pyreadstat for 
openSUSE:Factory checked in at 2024-07-11 20:29:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyreadstat (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyreadstat.new.17339 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyreadstat"

Thu Jul 11 20:29:47 2024 rev:14 rq:1186490 version:1.2.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyreadstat/python-pyreadstat.changes      
2024-03-17 22:15:19.230884780 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pyreadstat.new.17339/python-pyreadstat.changes
   2024-07-11 20:30:07.858156197 +0200
@@ -1,0 +2,7 @@
+Wed Jul  3 04:05:41 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Switch to autosetup and pyproject macros.
+- Add patch support-numpy-2.patch:
+  * Use correct constant for NaN.
+
+-------------------------------------------------------------------

New:
----
  support-numpy-2.patch

BETA DEBUG BEGIN:
  New:- Switch to autosetup and pyproject macros.
- Add patch support-numpy-2.patch:
  * Use correct constant for NaN.
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-pyreadstat.spec ++++++
--- /var/tmp/diff_new_pack.x0BtAq/_old  2024-07-11 20:30:08.406176449 +0200
+++ /var/tmp/diff_new_pack.x0BtAq/_new  2024-07-11 20:30:08.410176597 +0200
@@ -23,11 +23,15 @@
 License:        Apache-2.0
 URL:            https://github.com/Roche/pyreadstat
 Source:         
https://github.com/Roche/pyreadstat/archive/v%{version}.tar.gz#/pyreadstat-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#Roche/pyreadstat#266
+Patch0:         support-numpy-2.patch
 BuildRequires:  %{python_module Cython >= 3}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module numpy-devel}
 BuildRequires:  %{python_module pandas >= 0.24.0}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  glibc-devel
 BuildRequires:  python-rpm-macros
@@ -40,14 +44,14 @@
 Reads and Writes SAS, SPSS and Stata files into pandas data frames.
 
 %prep
-%setup -q -n pyreadstat-%{version}
+%autosetup -p1 -n pyreadstat-%{version}
 
 %build
 export CFLAGS="%{optflags} -fno-strict-aliasing"
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check
@@ -63,6 +67,6 @@
 %files %{python_files}
 %doc README.md change_log.md
 %license LICENSE
-%{python_sitearch}/pyreadstat*.egg-info
 %{python_sitearch}/pyreadstat
+%{python_sitearch}/pyreadstat-%{version}.dist-info
 

++++++ support-numpy-2.patch ++++++
>From 6462420c00e208b58653718e0539c630c38a2d1d Mon Sep 17 00:00:00 2001
From: Steve Kowalik <ste...@wedontsleep.org>
Date: Wed, 3 Jul 2024 13:48:15 +1000
Subject: [PATCH] Support Numpy 2 changes

Numpy 2.0 has been released, and the only change required to make the
tests pass is to start using the new NaN constant, which is now nan.
---
 tests/test_basic.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_basic.py b/tests/test_basic.py
index d791778..d0bdece 100644
--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -93,7 +93,7 @@ def _prepare_data(self):
         df_dates2 = df_dates1.copy()
         df_dates2["date"] = df_dates2["date"].apply(lambda x: x.date())
         self.df_sas_dates = df_dates2
-        self.df_sas_dates2 = pd.concat([self.df_sas_dates, 
pd.DataFrame([[np.NaN, pd.NaT, np.NaN]],columns=["date", "dtime", "time"])], 
ignore_index=True)
+        self.df_sas_dates2 = pd.concat([self.df_sas_dates, 
pd.DataFrame([[np.nan, pd.NaT, np.nan]],columns=["date", "dtime", "time"])], 
ignore_index=True)
 
         # missing data
         pandas_missing_sav_csv = os.path.join(self.basic_data_folder, 
"sample_missing.csv")

Reply via email to