forked from pool/python-joblib
Accepting request 1254191 from home:mcalabkova:branches:devel:languages:python
- Add numpy22.patch to fix doctests with numpy 2.2 OBS-URL: https://build.opensuse.org/request/show/1254191 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joblib?expand=0&rev=67
This commit is contained in:
22
numpy22.patch
Normal file
22
numpy22.patch
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
From 1d9b65db31bfe79c42801d795ea9ebfec1123c44 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Lo=C3=AFc=20Est=C3=A8ve?= <loic.esteve@ymail.com>
|
||||||
|
Date: Mon, 9 Dec 2024 17:16:23 +0100
|
||||||
|
Subject: [PATCH] DOC Make doctest compatible with numpy 2.2 (#1632)
|
||||||
|
|
||||||
|
---
|
||||||
|
joblib/__init__.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/joblib/__init__.py b/joblib/__init__.py
|
||||||
|
index 54f6c8fb4..e9d4c6870 100644
|
||||||
|
--- a/joblib/__init__.py
|
||||||
|
+++ b/joblib/__init__.py
|
||||||
|
@@ -63,7 +63,7 @@
|
||||||
|
>>> square = mem.cache(np.square)
|
||||||
|
>>> b = square(a) # doctest: +ELLIPSIS
|
||||||
|
______________________________________________________________________...
|
||||||
|
- [Memory] Calling square...
|
||||||
|
+ [Memory] Calling ...square...
|
||||||
|
square(array([[0., 0., 1.],
|
||||||
|
[1., 1., 1.],
|
||||||
|
[4., 2., 1.]]))
|
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 18 16:23:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Add numpy22.patch to fix doctests with numpy 2.2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 9 08:36:55 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Thu May 9 08:36:55 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-joblib
|
# spec file for package python-joblib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -27,6 +27,8 @@ Source: https://files.pythonhosted.org/packages/source/j/joblib/joblib-%
|
|||||||
# PATCH-FIX-OPENSUSE Also avoid a DeprecationWarning when using fork() under
|
# PATCH-FIX-OPENSUSE Also avoid a DeprecationWarning when using fork() under
|
||||||
# multiprocessing
|
# multiprocessing
|
||||||
Patch1: also-filter-new-fork-warning.patch
|
Patch1: also-filter-new-fork-warning.patch
|
||||||
|
# PATCH-FIX-UPSTREAM https://github.com/joblib/joblib/pull/1632 DOC Make doctest compatible with numpy 2.2
|
||||||
|
Patch2: numpy22.patch
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
BuildRequires: %{python_module lz4}
|
BuildRequires: %{python_module lz4}
|
||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
|
Reference in New Issue
Block a user