pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-joblib
Module Name: pkgsrc
Committed By: adam
Date: Wed May 21 07:05:30 UTC 2025
Modified Files:
pkgsrc/devel/py-joblib: Makefile distinfo
pkgsrc/devel/py-joblib/patches:
patch-joblib_externals_loky_backend_context.py
Log Message:
py-joblib: updated to 1.5.0
1.5.0
Memory:
Enforce age_limit is a positive timedelta for Memory.reduce_size, to avoid silently ignoring it.
Remove deprecated bytes_limit argument for Memory, which should be passed directly to Memory.reduce_size.
Extend functionality of the check_call_in_cache method to now also check against cache validity. Before, it would only check for a given call if it is in cache memory.
The Memory object now automatically creates a .gitignore file in its cache directory, instructing git to ignore the entire folder.
Parallel:
Fixed a bug that caused the timeout parameter in joblib.Parallel to be ineffective when used along with return_as='generator_unordered'.
Pretty printing of Parallel execution progress when the number of tasks is known.
Make it possible to pass extra arguments to the LokyBackend and MultiprocessingBackend, enabling the use of initializer.
Refactor and document the custom parallel backend API.
Maintenance:
Drop support for Python 3.8.
Support for Python 3.13 free-threaded has been added.
Drop support for PyPy.
Fixed an issue affecting joblib.load calls with non-null mmap_mode parameter when loading compressed python objects. It wrongly attempted to load with np.memmap anyway, resulting in python exceptions
or corrupted data. The result now properly use in-memory np.array arrays, in accordance with the warnings that are emitted in this case.
Fix a regression in 1.3 and 1.4 that caused large big endian arrays to trigger a serialization error.
Added a ensure_native_byte_order parameter to joblib.load. When True and mmap_mode is None, loaded arrays are automatically coerced to a byte order that matches the endianness of the host system.
This behavior has been the default since joblib==1.3, and can now be disabled if the parameter is set to False instead. Note that setting it to True will raise an error if mmap_mode is not null. The
default value 'auto' is equivalent to always setting True if mmap_mode is None, else always False.
Fix support for python 3.14 in hashing, with the addition of an extra argument in Pickler._batch_setitems.
Fix tests on platforms with only one CPU core.
Bump vendored cloudpickle to 3.1.1 to support Python 3.14 (dev) and various other fixes.
Bump vendored loky to 3.5.3 to support recent Python versions without raising the warning on calls to os.fork and fix various sources of crashes and deadlocks.
Use pickle protocol 5 for pickling numpy arrays with object type.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/py-joblib/Makefile
cvs rdiff -u -r1.20 -r1.21 pkgsrc/devel/py-joblib/distinfo
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/devel/py-joblib/patches/patch-joblib_externals_loky_backend_context.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-joblib/Makefile
diff -u pkgsrc/devel/py-joblib/Makefile:1.21 pkgsrc/devel/py-joblib/Makefile:1.22
--- pkgsrc/devel/py-joblib/Makefile:1.21 Sat Apr 12 11:33:32 2025
+++ pkgsrc/devel/py-joblib/Makefile Wed May 21 07:05:30 2025
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.21 2025/04/12 11:33:32 adam Exp $
+# $NetBSD: Makefile,v 1.22 2025/05/21 07:05:30 adam Exp $
-DISTNAME= joblib-1.4.2
+DISTNAME= joblib-1.5.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=j/joblib/}
Index: pkgsrc/devel/py-joblib/distinfo
diff -u pkgsrc/devel/py-joblib/distinfo:1.20 pkgsrc/devel/py-joblib/distinfo:1.21
--- pkgsrc/devel/py-joblib/distinfo:1.20 Sat May 11 19:08:53 2024
+++ pkgsrc/devel/py-joblib/distinfo Wed May 21 07:05:30 2025
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.20 2024/05/11 19:08:53 adam Exp $
+$NetBSD: distinfo,v 1.21 2025/05/21 07:05:30 adam Exp $
-BLAKE2s (joblib-1.4.2.tar.gz) = dcab867a135eae9a1550f745d0040735fdd7b46ce6597e034a92fdec67137d29
-SHA512 (joblib-1.4.2.tar.gz) = d4c84803207ace0025701261f9e7976329e2ff9fa18a3155be1afe1f03ebfd470772e39e94b3ed01f9d1409589991c9592dc4188bca86dba158c44c70355441b
-Size (joblib-1.4.2.tar.gz) = 2116621 bytes
-SHA1 (patch-joblib_externals_loky_backend_context.py) = cc11198188de6701bdb5c6ce699eccb6e4eb01df
+BLAKE2s (joblib-1.5.0.tar.gz) = 4ad7f1e4b6e3dd649150a31128a8e80d60090ff6ca4d686ccc227a61d3b09530
+SHA512 (joblib-1.5.0.tar.gz) = fddf2ed16129da52983fc078c599276cd37140061b88841dcdb1d732682a8819ac2adbaefd15581345af4fbcaf637d7cde00dbd5640b2598d57bd474081382a5
+Size (joblib-1.5.0.tar.gz) = 330234 bytes
+SHA1 (patch-joblib_externals_loky_backend_context.py) = 58eeb077db797442d08725403ba4d6c0108acdd9
Index: pkgsrc/devel/py-joblib/patches/patch-joblib_externals_loky_backend_context.py
diff -u pkgsrc/devel/py-joblib/patches/patch-joblib_externals_loky_backend_context.py:1.1 pkgsrc/devel/py-joblib/patches/patch-joblib_externals_loky_backend_context.py:1.2
--- pkgsrc/devel/py-joblib/patches/patch-joblib_externals_loky_backend_context.py:1.1 Wed Jan 10 14:38:25 2024
+++ pkgsrc/devel/py-joblib/patches/patch-joblib_externals_loky_backend_context.py Wed May 21 07:05:30 2025
@@ -1,10 +1,10 @@
-$NetBSD: patch-joblib_externals_loky_backend_context.py,v 1.1 2024/01/10 14:38:25 bacon Exp $
+$NetBSD: patch-joblib_externals_loky_backend_context.py,v 1.2 2025/05/21 07:05:30 adam Exp $
-# Add BSD support
+Add BSD support.
---- joblib/externals/loky/backend/context.py.orig 2023-06-29 15:14:21.000000000 +0000
+--- joblib/externals/loky/backend/context.py.orig 2025-05-03 21:09:12.000000000 +0000
+++ joblib/externals/loky/backend/context.py
-@@ -245,6 +245,9 @@ def _count_physical_cores():
+@@ -240,6 +240,9 @@ def _count_physical_cores():
return physical_cores_cache, exception
# Not cached yet, find it
@@ -13,11 +13,11 @@ $NetBSD: patch-joblib_externals_loky_bac
+ # FIXME: Add OpenBSD, Dragonfly
try:
if sys.platform == "linux":
- cpu_info = subprocess.run(
-@@ -274,6 +277,26 @@ def _count_physical_cores():
- )
- cpu_info = cpu_info.stdout
- cpu_count_physical = int(cpu_info)
+ cpu_count_physical = _count_physical_cores_linux()
+@@ -247,6 +250,26 @@ def _count_physical_cores():
+ cpu_count_physical = _count_physical_cores_win32()
+ elif sys.platform == "darwin":
+ cpu_count_physical = _count_physical_cores_darwin()
+ elif sys.platform.startswith('freebsd'):
+ cpu_info = subprocess.run(
+ "sysctl -n kern.smp.cores".split(),
Home |
Main Index |
Thread Index |
Old Index