git: 0d65e1ba4c18 - main - devel/py-joblib: update to v1.5.1
Date: Sun, 01 Jun 2025 17:07:26 UTC
The branch main has been updated by skreuzer:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0d65e1ba4c18c47dde0950959030529e5bfb47dd
commit 0d65e1ba4c18c47dde0950959030529e5bfb47dd
Author: Steven Kreuzer <skreuzer@FreeBSD.org>
AuthorDate: 2025-06-01 15:15:27 +0000
Commit: Steven Kreuzer <skreuzer@FreeBSD.org>
CommitDate: 2025-06-01 16:56:35 +0000
devel/py-joblib: update to v1.5.1
Changes: https://github.com/joblib/joblib/blob/main/CHANGES.rst
---
devel/py-joblib/Makefile | 5 ++-
devel/py-joblib/distinfo | 6 ++--
.../patch-joblib_externals_loky_backend_context.py | 38 +++++-----------------
3 files changed, 13 insertions(+), 36 deletions(-)
diff --git a/devel/py-joblib/Makefile b/devel/py-joblib/Makefile
index 6b317d3ba2c8..7440b960ac5b 100644
--- a/devel/py-joblib/Makefile
+++ b/devel/py-joblib/Makefile
@@ -1,6 +1,5 @@
PORTNAME= joblib
-PORTVERSION= 1.3.2
-PORTREVISION= 2
+PORTVERSION= 1.5.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,7 +15,7 @@ TEST_DEPENDS= ${PYNUMPY}
#TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}threadpoolctl>0:devel/py-threadpoolctl@${PY_FLAVOR}
USES= python
-USE_PYTHON= distutils autoplist pytest
+USE_PYTHON= pep517 autoplist pytest
NO_ARCH= yes
diff --git a/devel/py-joblib/distinfo b/devel/py-joblib/distinfo
index 6e588c33dbb0..af38c3d6b0c1 100644
--- a/devel/py-joblib/distinfo
+++ b/devel/py-joblib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1693055944
-SHA256 (joblib-1.3.2.tar.gz) = 92f865e621e17784e7955080b6d042489e3b8e294949cc44c6eac304f59772b1
-SIZE (joblib-1.3.2.tar.gz) = 1987720
+TIMESTAMP = 1748736368
+SHA256 (joblib-1.5.1.tar.gz) = f4f86e351f39fe3d0d32a9f2c3d8af1ee4cec285aafcb27003dda5205576b444
+SIZE (joblib-1.5.1.tar.gz) = 330475
diff --git a/devel/py-joblib/files/patch-joblib_externals_loky_backend_context.py b/devel/py-joblib/files/patch-joblib_externals_loky_backend_context.py
index 217577a36292..5782ed4dd74c 100644
--- a/devel/py-joblib/files/patch-joblib_externals_loky_backend_context.py
+++ b/devel/py-joblib/files/patch-joblib_externals_loky_backend_context.py
@@ -1,25 +1,10 @@
---- joblib/externals/loky/backend/context.py.orig 2023-06-29 15:14:21 UTC
+--- joblib/externals/loky/backend/context.py.orig 2025-06-01 15:05:29 UTC
+++ joblib/externals/loky/backend/context.py
-@@ -245,6 +245,9 @@ def _count_physical_cores():
- return physical_cores_cache, exception
-
- # Not cached yet, find it
-+ # Using subprocesses is inefficient, but python has no portable
-+ # sysctl interface at this time
-+ # FIXME: Add OpenBSD, Dragonfly
- try:
- if sys.platform == "linux":
- cpu_info = subprocess.run(
-@@ -269,6 +272,26 @@ def _count_physical_cores():
+@@ -247,6 +247,14 @@ def _count_physical_cores():
+ cpu_count_physical = _count_physical_cores_win32()
elif sys.platform == "darwin":
- cpu_info = subprocess.run(
- "sysctl -n hw.physicalcpu".split(),
-+ capture_output=True,
-+ text=True,
-+ )
-+ cpu_info = cpu_info.stdout
-+ cpu_count_physical = int(cpu_info)
-+ elif sys.platform.startswith('freebsd'):
+ cpu_count_physical = _count_physical_cores_darwin()
++ elif sys.platform.startswith("freebsd"):
+ cpu_info = subprocess.run(
+ "sysctl -n kern.smp.cores".split(),
+ capture_output=True,
@@ -27,13 +12,6 @@
+ )
+ cpu_info = cpu_info.stdout
+ cpu_count_physical = int(cpu_info)
-+ elif sys.platform.startswith('netbsd'):
-+ # FIXME: hw.ncpu reports the number of hyperthreads.
-+ # We prefer independent cores to prevent oversubscription.
-+ # NetBSD does not currently expose physical core counts,
-+ # but this is under discussion in PR kern/57816.
-+ cpu_info = subprocess.run(
-+ "sysctl -n hw.ncpu".split(),
- capture_output=True,
- text=True,
- )
+ else:
+ raise NotImplementedError(f"unsupported platform: {sys.platform}")
+