14
0
forked from pool/python-joblib

- Add patch avoid-deprecated-ast.patch:

* Avoid deprecated ast classes.
- Add patch also-filter-new-fork-warning.patch:
  * Filter DeprecationWarning due to calling fork() with multiprocessing.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joblib?expand=0&rev=60
This commit is contained in:
2023-11-28 04:00:59 +00:00
committed by Git OBS Bridge
parent 1c31648499
commit af5d476398
4 changed files with 59 additions and 3 deletions

View File

@@ -24,13 +24,20 @@ 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
# PATCH-FIX-UPSTREAM gh#joblib/joblib#05caf0772d605799e5d2337018fd32ac829b37aa
Patch0: avoid-deprecated-ast.patch
# PATCH-FIX-OPENSUSE Also avoid a DeprecationWarning when using fork() under
# multiprocessing
Patch1: also-filter-new-fork-warning.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module lz4}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module threadpoolctl}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-lz4
@@ -57,10 +64,10 @@ Joblib can handle large data and has specific optimizations for `numpy` arrays.
%autosetup -p1 -n joblib-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -110,7 +117,7 @@ fi
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/joblib-%{version}*-info
%{python_sitelib}/joblib-%{version}.dist-info
%{python_sitelib}/joblib/
%changelog