- 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:
parent
2c1a78827f
commit
86e04028f8
12
ignore-pkg_resources-deprecation.patch
Normal file
12
ignore-pkg_resources-deprecation.patch
Normal 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
|
@ -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>
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user