From 86e04028f8cc1be1cdd39961384458048d2db4a44e6e3b96780fc0e2e9fb17c9 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 24 Mar 2023 07:03:33 +0000 Subject: [PATCH] - Add patch ignore-pkg_resources-deprecation.patch: * Ignore DeprecationWarning from pkg_resources. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=123 --- ignore-pkg_resources-deprecation.patch | 12 ++++++++++++ python-numpy.changes | 6 ++++++ python-numpy.spec | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 ignore-pkg_resources-deprecation.patch diff --git a/ignore-pkg_resources-deprecation.patch b/ignore-pkg_resources-deprecation.patch new file mode 100644 index 0000000..d705897 --- /dev/null +++ b/ignore-pkg_resources-deprecation.patch @@ -0,0 +1,12 @@ +Index: numpy-1.24.2/pytest.ini +=================================================================== +--- numpy-1.24.2.orig/pytest.ini ++++ numpy-1.24.2/pytest.ini +@@ -25,5 +25,7 @@ filterwarnings = + # Ignore DeprecationWarnings from distutils + ignore::DeprecationWarning:.*distutils + ignore:\n\n `numpy.distutils`:DeprecationWarning ++# Ignore DeprecationWarning from pkg_resources ++ ignore:pkg_resources:DeprecationWarning + # Ignore mypy >= 0.971 DeprecationWarnings + ignore:path is deprecated\. Use files\(\) instead:DeprecationWarning:mypy diff --git a/python-numpy.changes b/python-numpy.changes index c3f1ca4..3c2a2dd 100644 --- a/python-numpy.changes +++ b/python-numpy.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 24 07:02:57 UTC 2023 - Steve Kowalik + +- Add patch ignore-pkg_resources-deprecation.patch: + * Ignore DeprecationWarning from pkg_resources. + ------------------------------------------------------------------- Wed Mar 22 13:08:22 UTC 2023 - Dirk Müller diff --git a/python-numpy.spec b/python-numpy.spec index dd209e9..dfe20b6 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -85,6 +85,8 @@ Source99: python-numpy-rpmlintrc Patch0: numpy-buildfix.patch # PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure Patch1: numpy-1.9.0-remove-__declspec.patch +# PATCH-FIX-OPENSUSE Ignore DeprecationWarnings when importing pkg_resources +Patch2: ignore-pkg_resources-deprecation.patch BuildRequires: %{python_module Cython >= 0.29.30} BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module devel}