From 8df9c9de646c081f5353217715c89cda8cfae61407f866ca83e0853a83a26fa7 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 6 Feb 2024 01:29:03 +0000 Subject: [PATCH] - Add patch filter-deprecationwarning.patch: * Ignore a DeprecationWarning treated as an error. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-param?expand=0&rev=56 --- filter-deprecationwarning.patch | 12 ++++++++++++ python-param.changes | 6 ++++++ python-param.spec | 3 ++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 filter-deprecationwarning.patch diff --git a/filter-deprecationwarning.patch b/filter-deprecationwarning.patch new file mode 100644 index 0000000..435de8a --- /dev/null +++ b/filter-deprecationwarning.patch @@ -0,0 +1,12 @@ +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/python-param.changes b/python-param.changes index dc75c36..2862227 100644 --- a/python-param.changes +++ b/python-param.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 6 01:28:23 UTC 2024 - Steve Kowalik + +- Add patch filter-deprecationwarning.patch: + * Ignore a DeprecationWarning treated as an error. + ------------------------------------------------------------------- Sat Jan 20 19:27:34 UTC 2024 - Dirk Müller diff --git a/python-param.spec b/python-param.spec index dbd1c3b..9d10f3e 100644 --- a/python-param.spec +++ b/python-param.spec @@ -22,10 +22,11 @@ Version: 2.0.2 Release: 0 Summary: Declarative Python programming using Parameters License: BSD-3-Clause -Group: Development/Languages/Python 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 BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module hatch_vcs} BuildRequires: %{python_module hatchling}