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}