- 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
This commit is contained in:
Steve Kowalik 2023-03-24 07:03:33 +00:00 committed by Git OBS Bridge
parent 2c1a78827f
commit 86e04028f8
3 changed files with 20 additions and 0 deletions

View File

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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 24 07:02:57 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch ignore-pkg_resources-deprecation.patch:
* Ignore DeprecationWarning from pkg_resources.
-------------------------------------------------------------------
Wed Mar 22 13:08:22 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

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