8 Commits

Author SHA256 Message Date
d0ae394364 Accepting request 1300700 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1300700
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-joblib?expand=0&rev=30
2025-08-21 14:47:15 +00:00
23b8a55042 - Skip tests failing with Python 3.13.7
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joblib?expand=0&rev=73
2025-08-21 07:23:59 +00:00
dcbe948a20 Accepting request 1287806 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1287806
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-joblib?expand=0&rev=29
2025-06-24 18:45:53 +00:00
ee1a1838db Accepting request 1287196 from home:mcalabkova:branches:devel:languages:python
- Update to 1.5.1
  * Vendor loky3.5.5 fixing the resource_tracker clean up with earlier 
    Python versions
  * 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
  * Drop support for Python 3.8
  * Support for Python 3.13 free-threaded has been added
  * Fix a regression in 1.3 and 1.4 that caused large big endian arrays
    to trigger a serialization error
  * Fix support for python 3.14 in hashing, with the addition of an
    extra argument in Pickler._batch_setitems
  * Use pickle protocol 5 for pickling numpy arrays with object type
- Drop merged numpy22.patch and loky_resource_tracker.patch
- BuildRequire python-pytest-asyncio to fix tests with pytest 8.4

OBS-URL: https://build.opensuse.org/request/show/1287196
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joblib?expand=0&rev=71
2025-06-23 05:46:49 +00:00
7ffdbcd515 Accepting request 1270281 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1270281
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-joblib?expand=0&rev=28
2025-04-18 14:14:57 +00:00
8a3e2c8d7e Accepting request 1270280 from home:mcalabkova:branches:devel:languages:python
- Add upstream loky_resource_tracker.patch to fix failure with
  recent CPython 3.12 and 3.13 bugfix releases

OBS-URL: https://build.opensuse.org/request/show/1270280
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joblib?expand=0&rev=69
2025-04-17 11:01:28 +00:00
07578dcf08 Accepting request 1254192 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1254192
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-joblib?expand=0&rev=27
2025-03-20 18:24:34 +00:00
d6133bf553 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
2025-03-18 16:31:19 +00:00
5 changed files with 60 additions and 26 deletions

View File

@@ -1,10 +1,10 @@
Index: joblib-1.3.2/joblib/test/test_parallel.py
Index: joblib-1.5.1/joblib/test/test_parallel.py
===================================================================
--- joblib-1.3.2.orig/joblib/test/test_parallel.py
+++ joblib-1.3.2/joblib/test/test_parallel.py
@@ -193,6 +193,11 @@ def test_main_thread_renamed_no_warning(
# warninfo catches Warnings from worker timeouts. We remove it if it exists
warninfo = [w for w in warninfo if "worker timeout" not in str(w.message)]
--- joblib-1.5.1.orig/joblib/test/test_parallel.py
+++ joblib-1.5.1/joblib/test/test_parallel.py
@@ -249,6 +249,11 @@ def test_main_thread_renamed_no_warning(
message_part = "multi-threaded, use of fork() may lead to deadlocks"
warninfo = [w for w in warninfo if message_part not in str(w.message)]
+ # There's a new warning in Python 3.12 about multiprocessing and forking
+ # that we filter out

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2382c5816b2636fbd20a09e0f4e9dad4736765fdfb7dca582943b9c1366b3f0e
size 2116621

BIN
joblib-1.5.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,39 @@
-------------------------------------------------------------------
Wed Aug 20 12:27:18 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Skip tests failing with Python 3.13.7
-------------------------------------------------------------------
Fri Jun 20 11:06:38 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 1.5.1
* Vendor loky3.5.5 fixing the resource_tracker clean up with earlier
Python versions
* 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
* Drop support for Python 3.8
* Support for Python 3.13 free-threaded has been added
* Fix a regression in 1.3 and 1.4 that caused large big endian arrays
to trigger a serialization error
* Fix support for python 3.14 in hashing, with the addition of an
extra argument in Pickler._batch_setitems
* Use pickle protocol 5 for pickling numpy arrays with object type
- Drop merged numpy22.patch and loky_resource_tracker.patch
- BuildRequire python-pytest-asyncio to fix tests with pytest 8.4
-------------------------------------------------------------------
Thu Apr 17 10:59:17 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add upstream loky_resource_tracker.patch to fix failure with
recent CPython 3.12 and 3.13 bugfix releases
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-joblib
Version: 1.4.2
Version: 1.5.1
Release: 0
Summary: Module for using Python functions as pipeline jobs
License: BSD-3-Clause
@@ -32,6 +32,7 @@ BuildRequires: %{python_module lz4}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module threadpoolctl}
@@ -86,30 +87,27 @@ export LANG=en_US.UTF-8
# test_child_raises_parent_exits_cleanly
# i586:
# test_nested_loop_error_in_grandchild_resource_tracker_silent
# s390x:
# test_hash_numpy_noncontiguous
# test_hashes_are_different_between_c_and_fortran_contiguous_arrays
# test_hashes_stay_the_same_with_numpy_objects
# test_non_contiguous_array_pickling
#
# always fails:
# test_parallel_call_cached_function_defined_in_jupyter
DISABLED_TESTS="test_hash_numpy_noncontiguous or \
test_hashes_are_different_between_c_and_fortran_contiguous_arrays or \
test_hashes_stay_the_same_with_numpy_objects or \
test_non_contiguous_array_pickling or \
test_multithreaded_parallel_termination_resource_tracker_silent or \
DISABLED_TESTS="test_multithreaded_parallel_termination_resource_tracker_silent or \
test_resource_tracker_silent_when_reference_cycles or \
test_child_raises_parent_exits_cleanly or \
test_nested_loop_error_in_grandchild_resource_tracker_silent or \
test_hash_numpy_noncontiguous or \
test_hashes_are_different_between_c_and_fortran_contiguous_arrays or \
test_hashes_stay_the_same_with_numpy_objects or \
test_non_contiguous_array_pickling or \
test_parallel_call_cached_function_defined_in_jupyter"
if [ $(python3 -c 'import sys; print(sys.byteorder)') != "little" ]; then
DISABLED_TESTS+=" or test_joblib_pickle_across_python_versions"
DISABLED_TESTS+=" or test_joblib_pickle_across_python_versions or \
test_hash_numpy_noncontiguous or \
test_hashes_are_different_between_c_and_fortran_contiguous_arrays or \
test_hashes_stay_the_same_with_numpy_objects or \
test_non_contiguous_array_pickling"
fi
# memmaping tests fail on Python 3.13.7 https://github.com/joblib/loky/issues/459
DISABLED_TESTS+=" or test_permission_error_windows_memmap_sent_to_parent or \
test_many_parallel_calls_on_same_object or \
test_memmapping_pool_for_large_arrays or \
test_memmapping_on_large_enough_dev_shm or \
test_memmapping_leaks"
%pytest -k "not ($DISABLED_TESTS)"
%files %{python_files}