forked from pool/python-joblib
Accepting request 1169420 from devel:languages:python
- update to 1.4.0: * Allow caching co-routines with Memory.cache. * Try to cast n_jobs to int in parallel and raise an error if it fails. This means that n_jobs=2.3 will now result in effective_n_jobs=2 instead of failing. * Ensure that errors in the task generator given to Parallel's call are raised in the results consumming thread. * Adjust codebase to NumPy 2.0 by changing np.NaN to np.nan and importing byte_bounds from np.lib.array_utils. * The parameter return_as in joblib.Parallel can now be set to generator_unordered. In this case the results will be returned in the order of task completion rather than the order of submission. * dask backend now supports return_as=generator and return_as=generator_unordered. * Vendor cloudpickle 3.0.0 and end support for Python 3.7 which has reached end of life. - drop avoid-deprecated-ast.patch (upstream) OBS-URL: https://build.opensuse.org/request/show/1169420 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-joblib?expand=0&rev=25
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
From 05caf0772d605799e5d2337018fd32ac829b37aa Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Lo=C3=AFc=20Est=C3=A8ve?= <loic.esteve@ymail.com>
|
||||
Date: Fri, 20 Oct 2023 19:59:00 +0200
|
||||
Subject: [PATCH] MNT fix Python 3.12 deprecation warning (#1518)
|
||||
|
||||
---
|
||||
joblib/_utils.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/joblib/_utils.py b/joblib/_utils.py
|
||||
index 7693310e0..6cd99ad31 100644
|
||||
--- a/joblib/_utils.py
|
||||
+++ b/joblib/_utils.py
|
||||
@@ -35,8 +35,8 @@ def eval_expr(expr):
|
||||
|
||||
|
||||
def eval_(node):
|
||||
- if isinstance(node, ast.Num): # <number>
|
||||
- return node.n
|
||||
+ if isinstance(node, ast.Constant): # <constant>
|
||||
+ return node.value
|
||||
elif isinstance(node, ast.BinOp): # <left> <operator> <right>
|
||||
return operators[type(node.op)](eval_(node.left), eval_(node.right))
|
||||
elif isinstance(node, ast.UnaryOp): # <operator> <operand> e.g., -1
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:92f865e621e17784e7955080b6d042489e3b8e294949cc44c6eac304f59772b1
|
||||
size 1987720
|
3
joblib-1.4.0.tar.gz
Normal file
3
joblib-1.4.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1eb0dc091919cd384490de890cb5dfd538410a6d4b3b54eef09fb8c50b409b1c
|
||||
size 2115863
|
@@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 20 21:06:55 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.4.0:
|
||||
* Allow caching co-routines with Memory.cache.
|
||||
* Try to cast n_jobs to int in parallel and raise an error if
|
||||
it fails. This means that n_jobs=2.3 will now result in
|
||||
effective_n_jobs=2 instead of failing.
|
||||
* Ensure that errors in the task generator given to Parallel's
|
||||
call are raised in the results consumming thread.
|
||||
* Adjust codebase to NumPy 2.0 by changing np.NaN to np.nan and
|
||||
importing byte_bounds from np.lib.array_utils.
|
||||
* The parameter return_as in joblib.Parallel can now be set to
|
||||
generator_unordered. In this case the results will be
|
||||
returned in the order of task completion rather than the
|
||||
order of submission.
|
||||
* dask backend now supports return_as=generator and
|
||||
return_as=generator_unordered.
|
||||
* Vendor cloudpickle 3.0.0 and end support for Python 3.7 which
|
||||
has reached end of life.
|
||||
- drop avoid-deprecated-ast.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 28 03:55:52 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-joblib
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,14 +18,12 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-joblib
|
||||
Version: 1.3.2
|
||||
Version: 1.4.0
|
||||
Release: 0
|
||||
Summary: Module for using Python functions as pipeline jobs
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/joblib/joblib
|
||||
Source: https://files.pythonhosted.org/packages/source/j/joblib/joblib-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#joblib/joblib#05caf0772d605799e5d2337018fd32ac829b37aa
|
||||
Patch0: avoid-deprecated-ast.patch
|
||||
# PATCH-FIX-OPENSUSE Also avoid a DeprecationWarning when using fork() under
|
||||
# multiprocessing
|
||||
Patch1: also-filter-new-fork-warning.patch
|
||||
|
Reference in New Issue
Block a user