2012-09-05 18:37:21 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-joblib
|
|
|
|
#
|
2025-03-18 16:31:19 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2012-09-05 18:37:21 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-03 07:07:58 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-24 11:07:23 +00:00
|
|
|
#
|
2012-09-05 18:37:21 +00:00
|
|
|
|
|
|
|
|
2023-06-11 11:43:39 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-05-22 17:04:15 +00:00
|
|
|
Name: python-joblib
|
2025-06-23 05:46:49 +00:00
|
|
|
Version: 1.5.1
|
2012-09-05 18:37:21 +00:00
|
|
|
Release: 0
|
2018-07-27 08:24:19 +00:00
|
|
|
Summary: Module for using Python functions as pipeline jobs
|
2013-10-24 11:07:23 +00:00
|
|
|
License: BSD-3-Clause
|
2018-07-20 06:57:21 +00:00
|
|
|
URL: https://github.com/joblib/joblib
|
2017-05-22 17:04:15 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/j/joblib/joblib-%{version}.tar.gz
|
2023-11-28 04:00:59 +00:00
|
|
|
# PATCH-FIX-OPENSUSE Also avoid a DeprecationWarning when using fork() under
|
|
|
|
# multiprocessing
|
|
|
|
Patch1: also-filter-new-fork-warning.patch
|
2022-10-11 15:42:53 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2018-07-20 11:48:55 +00:00
|
|
|
BuildRequires: %{python_module lz4}
|
2022-07-20 11:01:20 +00:00
|
|
|
BuildRequires: %{python_module numpy}
|
2023-11-28 04:00:59 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-01-07 20:40:52 +00:00
|
|
|
BuildRequires: %{python_module psutil}
|
2025-06-23 05:46:49 +00:00
|
|
|
BuildRequires: %{python_module pytest-asyncio}
|
2017-05-22 17:04:15 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-01-29 16:01:24 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-12-07 05:05:05 +00:00
|
|
|
BuildRequires: %{python_module threadpoolctl}
|
2023-11-28 04:00:59 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-01-29 16:01:24 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2021-02-16 13:41:21 +00:00
|
|
|
Recommends: python-lz4
|
2019-01-07 20:40:52 +00:00
|
|
|
Recommends: python-numpy
|
|
|
|
Recommends: python-psutil
|
2021-02-16 13:41:21 +00:00
|
|
|
Suggests: python-dask-distributed
|
2019-01-29 16:01:24 +00:00
|
|
|
BuildArch: noarch
|
2017-05-22 17:04:15 +00:00
|
|
|
%python_subpackages
|
2012-09-05 18:37:21 +00:00
|
|
|
|
|
|
|
%description
|
2018-01-11 22:24:17 +00:00
|
|
|
Joblib is a set of tools to provide lightweight pipelining in
|
|
|
|
Python. In particular, joblib offers:
|
2012-09-05 18:37:21 +00:00
|
|
|
|
|
|
|
1. transparent disk-caching of the output values and lazy re-evaluation
|
|
|
|
(memoize pattern)
|
|
|
|
|
2018-01-11 22:24:17 +00:00
|
|
|
2. parallel computing
|
2012-09-05 18:37:21 +00:00
|
|
|
|
|
|
|
3. logging and tracing of the execution
|
|
|
|
|
2018-01-11 22:24:17 +00:00
|
|
|
Joblib can handle large data and has specific optimizations for `numpy` arrays.
|
2012-09-05 18:37:21 +00:00
|
|
|
|
|
|
|
%prep
|
2022-07-20 11:01:20 +00:00
|
|
|
%autosetup -p1 -n joblib-%{version}
|
2012-09-05 18:37:21 +00:00
|
|
|
|
|
|
|
%build
|
2023-11-28 04:00:59 +00:00
|
|
|
%pyproject_wheel
|
2012-09-05 18:37:21 +00:00
|
|
|
|
|
|
|
%install
|
2023-11-28 04:00:59 +00:00
|
|
|
%pyproject_install
|
2017-05-22 17:04:15 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-09-05 18:37:21 +00:00
|
|
|
|
2017-05-22 17:04:15 +00:00
|
|
|
%check
|
2019-01-07 20:40:52 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2020-10-05 14:21:50 +00:00
|
|
|
# turn off unreliable tests across architectures
|
|
|
|
# https://bugzilla.suse.com/show_bug.cgi?id=1177209
|
|
|
|
# they have been seen failing for the first time on following
|
|
|
|
# architectures:
|
|
|
|
# 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
|
|
|
|
# x86_64:
|
|
|
|
# test_multithreaded_parallel_termination_resource_tracker_silent
|
|
|
|
# aarch64:
|
|
|
|
# test_resource_tracker_silent_when_reference_cycles
|
|
|
|
# test_child_raises_parent_exits_cleanly
|
2020-10-27 21:46:21 +00:00
|
|
|
# i586:
|
|
|
|
# test_nested_loop_error_in_grandchild_resource_tracker_silent
|
2021-02-16 13:41:21 +00:00
|
|
|
#
|
|
|
|
# always fails:
|
|
|
|
# test_parallel_call_cached_function_defined_in_jupyter
|
2025-08-21 07:23:59 +00:00
|
|
|
DISABLED_TESTS="test_multithreaded_parallel_termination_resource_tracker_silent or \
|
2020-10-05 14:21:50 +00:00
|
|
|
test_resource_tracker_silent_when_reference_cycles or \
|
2020-10-27 21:46:21 +00:00
|
|
|
test_child_raises_parent_exits_cleanly or \
|
2020-10-30 12:52:01 +00:00
|
|
|
test_nested_loop_error_in_grandchild_resource_tracker_silent or \
|
2021-02-16 13:41:21 +00:00
|
|
|
test_parallel_call_cached_function_defined_in_jupyter"
|
|
|
|
if [ $(python3 -c 'import sys; print(sys.byteorder)') != "little" ]; then
|
2025-08-21 07:23:59 +00:00
|
|
|
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"
|
2021-10-16 21:32:28 +00:00
|
|
|
fi
|
2025-08-21 07:23:59 +00:00
|
|
|
# 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"
|
2020-10-05 14:21:50 +00:00
|
|
|
%pytest -k "not ($DISABLED_TESTS)"
|
2012-09-05 18:37:21 +00:00
|
|
|
|
2017-05-22 17:04:15 +00:00
|
|
|
%files %{python_files}
|
2018-07-20 06:57:21 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.rst
|
2023-11-28 04:00:59 +00:00
|
|
|
%{python_sitelib}/joblib-%{version}.dist-info
|
2017-05-22 17:04:15 +00:00
|
|
|
%{python_sitelib}/joblib/
|
2012-09-05 18:37:21 +00:00
|
|
|
|
2012-10-11 07:17:31 +00:00
|
|
|
%changelog
|