Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pandas for openSUSE:Factory checked in at 2026-08-25 13:17:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pandas (Old) and /work/SRC/openSUSE:Factory/.python-pandas.new.1258 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pandas" Tue Aug 25 13:17:45 2026 rev:85 rq:1373438 version:3.0.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pandas/python-pandas.changes 2026-08-01 18:28:31.486146768 +0200 +++ /work/SRC/openSUSE:Factory/.python-pandas.new.1258/python-pandas.changes 2026-08-25 13:17:49.921184912 +0200 @@ -1,0 +2,6 @@ +Mon Aug 24 14:03:36 UTC 2026 - Markéta Machová <[email protected]> + +- Add np25.patch to fix tests with numpy 2.5 +- Hotfix dirty hack which broke with recent python-rpm-macros + +------------------------------------------------------------------- New: ---- np25.patch ----------(New B)---------- New: - Add np25.patch to fix tests with numpy 2.5 - Hotfix dirty hack which broke with recent python-rpm-macros ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pandas.spec ++++++ --- /var/tmp/diff_new_pack.EU6J5b/_old 2026-08-25 13:17:53.228301428 +0200 +++ /var/tmp/diff_new_pack.EU6J5b/_new 2026-08-25 13:17:53.236301710 +0200 @@ -73,6 +73,8 @@ # SourceRepository: https://github.com/pandas-dev/pandas # Must be created by cloning through `osc service runall`: gh#pandas-dev/pandas#54903, gh#pandas-dev/pandas#54907 Source0: pandas-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/pandas-dev/pandas/pull/66621 BUG: Avoid NumPy 2.5 DeprecationWarning in Timedelta.view +Patch0: np25.patch %if !%{with test} BuildRequires: %{python_module Cython >= 3.1.0} BuildRequires: %{python_module devel >= 3.11} @@ -443,7 +445,7 @@ %setup -q -n pandas-%{version} %if !%{with test} # use the last one from the buildset: need versioneer installed -%python_expand genpython="%__$python" +%python_expand genpython="$python" ${genpython} generate_version.py -o _version_meson.py sed -i "s|'generate_version.py',|'${genpython}', 'generate_version.py',|" meson.build # don't require the PyPI data only tzdata package, we use the timezone RPM package ++++++ np25.patch ++++++ >From ff1d39bbdf4eda26de2285cf836104f9885b0826 Mon Sep 17 00:00:00 2001 From: Aryan Bhirud <[email protected]> Date: Sun, 9 Aug 2026 05:01:00 +0530 Subject: [PATCH] BUG: Avoid NumPy 2.5 DeprecationWarning in Timedelta.view (#66621) --- pandas/_libs/tslibs/timedeltas.pyx | 2 +- pandas/tests/scalar/timedelta/test_timedelta.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) Index: pandas-3.0.5/pandas/_libs/tslibs/timedeltas.pyx =================================================================== --- pandas-3.0.5.orig/pandas/_libs/tslibs/timedeltas.pyx +++ pandas-3.0.5/pandas/_libs/tslibs/timedeltas.pyx @@ -1687,7 +1687,7 @@ cdef class _Timedelta(timedelta): >>> td.view(int) 259200000000000 """ - return np.timedelta64(self._value).view(dtype) + return np.timedelta64(self._value, self.unit).view(dtype) @property def components(self): Index: pandas-3.0.5/pandas/tests/scalar/timedelta/test_timedelta.py =================================================================== --- pandas-3.0.5.orig/pandas/tests/scalar/timedelta/test_timedelta.py +++ pandas-3.0.5/pandas/tests/scalar/timedelta/test_timedelta.py @@ -106,6 +106,13 @@ class TestNonNano: elif unit == NpyDatetimeUnit.NPY_FR_us.value: assert res.dtype == "m8[us]" + def test_view(self): + # GH#66608 + td = Timedelta(seconds=1) + with tm.assert_produces_warning(None): + res = td.view(np.int64) + assert res == td._value + def test_truediv_timedeltalike(self, td): assert td / td == 1 assert (2.5 * td) / td == 2.5
