forked from pool/python-joblib
- Make joblib work on Python 3 installation that do not ship with the lzma package in their standard library. - Drop support for Python 2 and Python 3.5. All objects in ``joblib.my_exceptions`` and ``joblib.format_stack`` are now deprecated and will be removed in joblib 0.16. Note that no deprecation warning will be raised for these objects Python < 3.7. https://github.com/joblib/joblib/pull/1018 - Fix many bugs related to the temporary files and folder generated when automatically memory mapping large numpy arrays for efficient inter-process communication. In particular, this would cause `PermissionError` exceptions to be raised under Windows and large leaked files in `/dev/shm` under Linux in case of crash. https://github.com/joblib/joblib/pull/966 - Make the dask backend collect results as soon as they complete leading to a performance improvement: https://github.com/joblib/joblib/pull/1025 - Fix the number of jobs reported by ``effective_n_jobs`` when ``n_jobs=None`` called in a parallel backend context. https://github.com/joblib/joblib/pull/985 - Upgraded vendored cloupickle to 1.4.1 and loky to 2.8.0. This allows for Parallel calls of dynamically defined functions with type annotations in particular. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joblib?expand=0&rev=32
76 lines
2.2 KiB
RPMSpec
76 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-joblib
|
|
#
|
|
# Copyright (c) 2020 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-joblib
|
|
Version: 0.15.1
|
|
Release: 0
|
|
Summary: Module for using Python functions as pipeline jobs
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/joblib/joblib
|
|
Source: https://files.pythonhosted.org/packages/source/j/joblib/joblib-%{version}.tar.gz
|
|
BuildRequires: %{python_module lz4}
|
|
BuildRequires: %{python_module numpy}
|
|
BuildRequires: %{python_module psutil}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python3-threadpoolctl
|
|
Requires: python-lz4
|
|
Recommends: python-numpy
|
|
Recommends: python-psutil
|
|
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
|
|
%setup -q -n joblib-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc README.rst
|
|
%{python_sitelib}/joblib-%{version}-py*.egg-info
|
|
%{python_sitelib}/joblib/
|
|
|
|
%changelog
|