diff --git a/filter-deprecationwarning.patch b/filter-deprecationwarning.patch deleted file mode 100644 index 435de8a..0000000 --- a/filter-deprecationwarning.patch +++ /dev/null @@ -1,12 +0,0 @@ -Index: param-2.0.2/pyproject.toml -=================================================================== ---- param-2.0.2.orig/pyproject.toml -+++ param-2.0.2/pyproject.toml -@@ -219,6 +219,7 @@ examples = "pytest -v -n logical --dist - python_files = "test*.py" - filterwarnings = [ - "error", -+ "ignore:Bitwise inversion.*:DeprecationWarning", - ] - xfail_strict = "true" - asyncio_mode = "auto" diff --git a/ignore-pandas-assignment-futurewarning.patch b/ignore-pandas-assignment-futurewarning.patch new file mode 100644 index 0000000..05c6875 --- /dev/null +++ b/ignore-pandas-assignment-futurewarning.patch @@ -0,0 +1,23 @@ +Index: param-2.2.1/tests/testfiledeserialization.py +=================================================================== +--- param-2.2.1.orig/tests/testfiledeserialization.py ++++ param-2.2.1/tests/testfiledeserialization.py +@@ -2,6 +2,7 @@ + import unittest + import param + import sys ++import warnings + + from unittest import skipIf + from tempfile import mkdtemp +@@ -197,7 +198,9 @@ class TestFileDeserialization(unittest.T + @pd_skip + def test_data_frame_stata(self): + path = '{}/val.dta'.format(self.temp_dir) +- P.data_frame.to_stata(path, write_index=False) ++ with warnings.catch_warnings(): ++ warnings.simplefilter('ignore', category=FutureWarning) ++ P.data_frame.to_stata(path, write_index=False) + self._test_deserialize_array(P, path, 'data_frame') + + @pd_skip diff --git a/python-param.changes b/python-param.changes index 8c8bb35..e7d0e89 100644 --- a/python-param.changes +++ b/python-param.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Nov 11 01:40:28 UTC 2025 - Steve Kowalik + +- Drop patch filter-deprecationwarning.patch, no longer needed. +- Addd patch ignore-pandas-assignment-futurewarning.patch: + * Ignore a FutureWarning raised from the depths of pandas. + ------------------------------------------------------------------- Thu Jun 26 09:35:43 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-param.spec b/python-param.spec index 868e56f..a115035 100644 --- a/python-param.spec +++ b/python-param.spec @@ -1,7 +1,7 @@ # # spec file for package python-param # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 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 modname param Name: python-param Version: 2.2.1 Release: 0 @@ -25,8 +24,8 @@ License: BSD-3-Clause URL: https://param.holoviz.org/index.html Source: https://files.pythonhosted.org/packages/source/p/param/param-%{version}.tar.gz Source100: python-param-rpmlintrc -# https://github.com/holoviz/param/issues/907 -Patch0: filter-deprecationwarning.patch +# PATCH-FIX-OPENSUSE Ignore FutureWarning from pandas itself +Patch0: ignore-pandas-assignment-futurewarning.patch BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module hatch_vcs} BuildRequires: %{python_module hatchling}