Group :: Development/Python3
RPM: python3-module-joblib
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name joblib
%def_with check
Name: python3-module-%pypi_name
Version: 1.2.0
Release: alt1
Summary: Lightweight pipelining: using Python functions as pipeline jobs
License: BSD
Group: Development/Python3
Url: https://pypi.org/project/joblib/
BuildArch: noarch
# https://github.com/joblib/joblib.git
Source: %name-%version.tar
Source1: debundler.py.in
Patch0: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%if_with check
# unvendored deps
BuildRequires: python3(loky)
BuildRequires: python3(cloudpickle)
BuildRequires: /proc
BuildRequires: python3(numpy)
BuildRequires: python3(numpy.testing)
BuildRequires: python3(threadpoolctl)
BuildRequires: python3(pytest)
%endif
# `distributed` is not packaged yet
%filter_from_requires /python[3]\(\.[[:digit:]]\)\?(distributed\()\|\..*)\)/d
# debundler
## filter no longer provided self-dependencies
%filter_from_requires /python3(joblib\.externals\..*)/d
## dependencies on debundled packages
%py3_requires loky
%py3_requires cloudpickle
%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. easy simple parallel computing
3. logging and tracing of the execution
Joblib is optimized to be fast and robust in particular on large data
and has specific optimizations for numpy arrays.
%prep
%setup
%autopatch -p1
VENDORED_PATH='joblib/externals'
UNVENDORED_PATH="$VENDORED_PATH/__init__.py"
rm -r "$VENDORED_PATH"
mkdir "$VENDORED_PATH"
cp "%SOURCE1" "$UNVENDORED_PATH"
sed -i \
-e 's/ at VENDORED_ROOT at /"joblib.externals"/' \
-e 's/ at VENDORED_FAKE_PACKAGES at /None/' \
"$UNVENDORED_PATH"
%build
%pyproject_build
%install
%pyproject_install
%check
%tox_create_default_config
%tox_check_pyproject
%files
%doc *.rst
%python3_sitelibdir/joblib/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%exclude %python3_sitelibdir/joblib/test*
%exclude %python3_sitelibdir/joblib/__pycache__/test*
%changelog
…
Todas as alterações você pod ver aqui
%define pypi_name joblib
%def_with check
Name: python3-module-%pypi_name
Version: 1.2.0
Release: alt1
Summary: Lightweight pipelining: using Python functions as pipeline jobs
License: BSD
Group: Development/Python3
Url: https://pypi.org/project/joblib/
BuildArch: noarch
# https://github.com/joblib/joblib.git
Source: %name-%version.tar
Source1: debundler.py.in
Patch0: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%if_with check
# unvendored deps
BuildRequires: python3(loky)
BuildRequires: python3(cloudpickle)
BuildRequires: /proc
BuildRequires: python3(numpy)
BuildRequires: python3(numpy.testing)
BuildRequires: python3(threadpoolctl)
BuildRequires: python3(pytest)
%endif
# `distributed` is not packaged yet
%filter_from_requires /python[3]\(\.[[:digit:]]\)\?(distributed\()\|\..*)\)/d
# debundler
## filter no longer provided self-dependencies
%filter_from_requires /python3(joblib\.externals\..*)/d
## dependencies on debundled packages
%py3_requires loky
%py3_requires cloudpickle
%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. easy simple parallel computing
3. logging and tracing of the execution
Joblib is optimized to be fast and robust in particular on large data
and has specific optimizations for numpy arrays.
%prep
%setup
%autopatch -p1
VENDORED_PATH='joblib/externals'
UNVENDORED_PATH="$VENDORED_PATH/__init__.py"
rm -r "$VENDORED_PATH"
mkdir "$VENDORED_PATH"
cp "%SOURCE1" "$UNVENDORED_PATH"
sed -i \
-e 's/ at VENDORED_ROOT at /"joblib.externals"/' \
-e 's/ at VENDORED_FAKE_PACKAGES at /None/' \
"$UNVENDORED_PATH"
%build
%pyproject_build
%install
%pyproject_install
%check
%tox_create_default_config
%tox_check_pyproject
%files
%doc *.rst
%python3_sitelibdir/joblib/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%exclude %python3_sitelibdir/joblib/test*
%exclude %python3_sitelibdir/joblib/__pycache__/test*
%changelog
…
Todas as alterações você pod ver aqui