From c6a254c99f8bc8900563f4374c38640e8cb225d5cae9af5cafe7879fa26c6bbf Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 20 Mar 2023 05:14:18 +0000 Subject: [PATCH] - Add ptch ignore-deprecationwarning.patch: * Ignore DeprecationWarning, some of our dependancies use pkg_resources. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-benchmark?expand=0&rev=26 --- ignore-deprecationwarning.patch | 12 ++++++++++++ python-pytest-benchmark.changes | 6 ++++++ python-pytest-benchmark.spec | 3 +++ 3 files changed, 21 insertions(+) create mode 100644 ignore-deprecationwarning.patch diff --git a/ignore-deprecationwarning.patch b/ignore-deprecationwarning.patch new file mode 100644 index 0000000..073d3c8 --- /dev/null +++ b/ignore-deprecationwarning.patch @@ -0,0 +1,12 @@ +Index: pytest-benchmark-4.0.0/pytest.ini +=================================================================== +--- pytest-benchmark-4.0.0.orig/pytest.ini ++++ pytest-benchmark-4.0.0/pytest.ini +@@ -32,6 +32,7 @@ testpaths = + # Idea from: https://til.simonwillison.net/pytest/treat-warnings-as-errors + filterwarnings = + error ++ ignore::DeprecationWarning + # You can add exclusions, some examples: + # ignore:'pytest_benchmark' defines default_app_config:PendingDeprecationWarning:: + # ignore:The {{% if::: diff --git a/python-pytest-benchmark.changes b/python-pytest-benchmark.changes index 95d64b3..e435a4a 100644 --- a/python-pytest-benchmark.changes +++ b/python-pytest-benchmark.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 20 05:13:36 UTC 2023 - Steve Kowalik + +- Add ptch ignore-deprecationwarning.patch: + * Ignore DeprecationWarning, some of our dependancies use pkg_resources. + ------------------------------------------------------------------- Tue Jan 17 13:03:29 UTC 2023 - Daniel Garcia diff --git a/python-pytest-benchmark.spec b/python-pytest-benchmark.spec index 60d1276..9490d60 100644 --- a/python-pytest-benchmark.spec +++ b/python-pytest-benchmark.spec @@ -27,6 +27,9 @@ Source: https://files.pythonhosted.org/packages/source/p/pytest-benchmar Patch0: fix-test-fast.patch # PATCH-FIX-OPENSUSE py311.patch gh#ionelmc/pytest-benchmark#232 Patch1: py311.patch +# PATCH-FIX-OPENSUSE Ignore DeprecationWarning, some of our dependancies use +# pkg_resources. +Patch2: ignore-deprecationwarning.patch BuildRequires: %{python_module aspectlib} BuildRequires: %{python_module elasticsearch} BuildRequires: %{python_module freezegun}