15
0
forked from pool/python-param

Accepting request 1316996 from devel:languages:python

- Drop patch filter-deprecationwarning.patch, no longer needed.
- Addd patch ignore-pandas-assignment-futurewarning.patch:
  * Ignore a FutureWarning raised from the depths of pandas.

OBS-URL: https://build.opensuse.org/request/show/1316996
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-param?expand=0&rev=32
This commit is contained in:
2025-11-11 18:20:38 +00:00
committed by Git OBS Bridge
4 changed files with 33 additions and 16 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Nov 11 01:40:28 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <adrian.glaubitz@suse.com>

View File

@@ -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}