diff --git a/python-numpy.changes b/python-numpy.changes index 71d4177..83222a6 100644 --- a/python-numpy.changes +++ b/python-numpy.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 12 04:22:36 UTC 2023 - Steve Kowalik + +- Add patch remove-deprecated-hypothesis-funcs.patch: + * Change to a non-deprecated function from hypothesis. + ------------------------------------------------------------------- Fri Apr 21 12:28:32 UTC 2023 - Dirk Müller diff --git a/python-numpy.spec b/python-numpy.spec index 2839f41..5b20baa 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -88,6 +88,8 @@ Patch0: numpy-buildfix.patch Patch1: numpy-1.9.0-remove-__declspec.patch # PATCH-FIX-OPENSUSE Ignore DeprecationWarnings when importing pkg_resources Patch2: ignore-pkg_resources-deprecation.patch +# PATCH-FIX-OPENSUSE Do not call a deprecated hypothesis health check function +Patch3: remove-deprecated-hypothesis-funcs.patch BuildRequires: %{python_module Cython >= 0.29.30} BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module devel} diff --git a/remove-deprecated-hypothesis-funcs.patch b/remove-deprecated-hypothesis-funcs.patch new file mode 100644 index 0000000..bd6b12a --- /dev/null +++ b/remove-deprecated-hypothesis-funcs.patch @@ -0,0 +1,13 @@ +Index: numpy-1.24.2/numpy/conftest.py +=================================================================== +--- numpy-1.24.2.orig/numpy/conftest.py ++++ numpy-1.24.2/numpy/conftest.py +@@ -30,7 +30,7 @@ hypothesis.settings.register_profile( + hypothesis.settings.register_profile( + name="np.test() profile", + deadline=None, print_blob=True, database=None, derandomize=True, +- suppress_health_check=hypothesis.HealthCheck.all(), ++ suppress_health_check=list(hypothesis.HealthCheck), + ) + # Note that the default profile is chosen based on the presence + # of pytest.ini, but can be overridden by passing the