Skip to content

Conversation

@pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented May 3, 2025

This PR updates joblib from 1.4.2 to 1.5.0.

Changelog

1.5.0

---------------------------

Memory:
~~~~~~~

- Enforce ``age_limit`` is a positive timedelta for ``Memory.reduce_size``,
to avoid silently ignoring it.
https://github.com/joblib/joblib/pull/1613

- Remove deprecated ``bytes_limit`` argument for ``Memory``, which should
be passed directly to ``Memory.reduce_size``.
https://github.com/joblib/joblib/pull/1569

- 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.
https://github.com/joblib/joblib/pull/1584

- The Memory object now automatically creates a .gitignore file in its cache
directory, instructing git to ignore the entire folder.
https://github.com/joblib/joblib/pull/1674

Parallel:
~~~~~~~~~

- Fixed a bug that caused the ``timeout`` parameter in ``joblib.Parallel`` to be
ineffective when used along with ``return_as='generator_unordered'``.
https://github.com/joblib/joblib/issues/1586

- Pretty printing of ``Parallel`` execution progress when the number of tasks is
known. https://github.com/joblib/joblib/pull/1608

- Make it possible to pass extra arguments to the ``LokyBackend`` and
``MultiprocessingBackend``, enabling the use of ``initializer``.
https://github.com/joblib/joblib/pull/1525

- Refactor and document the custom parallel backend API.
https://github.com/joblib/joblib/pull/1667

Maintenance:
~~~~~~~~~~~~

- Drop support for Python 3.8.
https://github.com/joblib/joblib/pull/1669

- Support for Python 3.13 free-threaded has been added.
https://github.com/joblib/joblib/pull/1589

- Drop support for PyPy.
https://github.com/joblib/joblib/pull/1670

- 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.
https://github.com/joblib/joblib/pull/1681

- Fix a regression in 1.3 and 1.4 that caused large big endian arrays to trigger
a serialization error. https://github.com/joblib/joblib/issues/1545

- 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``.  https://github.com/joblib/joblib/pull/1561

- Fix support for python 3.14 in ``hashing``, with the addition of
an extra argument in ``Pickler._batch_setitems``.
https://github.com/joblib/joblib/pull/1688

- Fix tests on platforms with only one CPU core.
https://github.com/joblib/joblib/pull/1682

- 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.
https://github.com/joblib/joblib/pull/1682
Links

@stephenhky stephenhky merged commit 003cfa1 into master May 8, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants