forked from pool/python-joblib
- Update to 1.2.0 * Fix a security issue where eval(pre_dispatch) could potentially run arbitrary code. Now only basic numerics are supported. #1327 * Make sure that joblib works even when multiprocessing is not available, for instance with Pyodide #1256 * Avoid unnecessary warnings when workers and main process delete the temporary memmap folder contents concurrently. #1263 * Vendor loky 3.1.0 with several fixes to more robustly forcibly terminate worker processes in case of a crash. #1269 * Fix memory alignment bug for pickles containing numpy arrays. This is especially important when loading the pickle with mmap_mode != None as the resulting numpy.memmap object would not be able to correct the misalignment without performing a memory copy. This bug would cause invalid computation and segmentation faults with native code that would directly access the underlying data buffer of a numpy array, for instance C/C++/Cython code compiled with older GCC versions or some old OpenBLAS written in platform specific assembly. #1254 * Vendor cloudpickle 2.2.0 which adds support for PyPy 3.8+. * Vendor loky 3.3.0 which fixes a bug with leaking processes in case of nested loky parallel calls and more reliability spawn the correct number of reusable workers. - Drop support-setuptools-62.patch OBS-URL: https://build.opensuse.org/request/show/1009807 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joblib?expand=0&rev=52
116 lines
4.1 KiB
RPMSpec
116 lines
4.1 KiB
RPMSpec
#
|
|
# spec file for package python-joblib
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-joblib
|
|
Version: 1.2.0
|
|
Release: 0
|
|
Summary: Module for using Python functions as pipeline jobs
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/joblib/joblib
|
|
Source: https://files.pythonhosted.org/packages/source/j/joblib/joblib-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
BuildRequires: %{python_module lz4}
|
|
BuildRequires: %{python_module numpy}
|
|
BuildRequires: %{python_module psutil}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module threadpoolctl}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Recommends: python-lz4
|
|
Recommends: python-numpy
|
|
Recommends: python-psutil
|
|
Suggests: python-dask-distributed
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Joblib is a set of tools to provide lightweight pipelining in
|
|
Python. In particular, joblib offers:
|
|
|
|
1. transparent disk-caching of the output values and lazy re-evaluation
|
|
(memoize pattern)
|
|
|
|
2. parallel computing
|
|
|
|
3. logging and tracing of the execution
|
|
|
|
Joblib can handle large data and has specific optimizations for `numpy` arrays.
|
|
|
|
%prep
|
|
%autosetup -p1 -n joblib-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
# 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
|
|
# 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 \
|
|
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"
|
|
fi
|
|
%pytest -k "not ($DISABLED_TESTS)"
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc README.rst
|
|
%{python_sitelib}/joblib-%{version}*-info
|
|
%{python_sitelib}/joblib/
|
|
|
|
%changelog
|