Switch to latest Python macros.
This commit is contained in:
parent
bcf75f45f5
commit
5c5b9832a6
135
python-dask.spec
135
python-dask.spec
|
@ -26,32 +26,11 @@ Dask is a flexible parallel computing library for analytics.
|
|||
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
|
||||
BuildRequires: python3-devel
|
||||
%global cloudpickle_version 0.2.2
|
||||
BuildRequires: python3dist(cloudpickle) >= %{cloudpickle_version}
|
||||
%global fsspec_version 0.6
|
||||
BuildRequires: python3dist(fsspec) >= %{fsspec_version}
|
||||
BuildRequires: python3dist(graphviz)
|
||||
BuildRequires: python3dist(ipython)
|
||||
%global numpy_version 1.18
|
||||
BuildRequires: python3dist(numpy) >= %{numpy_version}
|
||||
BuildRequires: python3dist(packaging) >= 20
|
||||
%global pandas_version 1
|
||||
BuildRequires: python3dist(pandas) >= %{pandas_version}
|
||||
%global partd_version 0.3.10
|
||||
BuildRequires: python3dist(partd) >= %{partd_version}
|
||||
BuildRequires: python3dist(pytest)
|
||||
BuildRequires: python3dist(pytest-rerunfailures)
|
||||
BuildRequires: python3dist(pytest-xdist)
|
||||
BuildRequires: python3dist(pyyaml)
|
||||
BuildRequires: python3dist(setuptools)
|
||||
%global toolz_version 0.8.2
|
||||
BuildRequires: python3dist(toolz) >= %{toolz_version}
|
||||
%if %{without bootstrap}
|
||||
%global distributed_version 2021.8
|
||||
BuildRequires: python3dist(distributed) >= %{distributed_version}
|
||||
BuildRequires: python3dist(scikit-image)
|
||||
BuildRequires: python3dist(xarray)
|
||||
%endif
|
||||
|
@ -75,81 +54,9 @@ Recommends: python3-%{srcname}+distributed = %{version}-%{release}
|
|||
Dask is a flexible parallel computing library for analytics.
|
||||
|
||||
|
||||
%package -n python3-%{srcname}+array
|
||||
Summary: Meta-package for python3-%{srcname} with array feature
|
||||
BuildArch: noarch
|
||||
%{?python_provide:%python_provide python3-%{srcname}+array}
|
||||
|
||||
Requires: python3-%{srcname} = %{version}-%{release}
|
||||
Requires: python3dist(numpy) >= %{numpy_version}
|
||||
Requires: python3dist(toolz) >= %{toolz_version}
|
||||
|
||||
%description -n python3-%{srcname}+array
|
||||
This package installs dask with dependencies required for its array feature.
|
||||
Dask is a flexible parallel computing library for analytics.
|
||||
|
||||
|
||||
%package -n python3-%{srcname}+bag
|
||||
Summary: Meta-package for python3-%{srcname} with bag feature
|
||||
BuildArch: noarch
|
||||
%{?python_provide:%python_provide python3-%{srcname}+bag}
|
||||
|
||||
Requires: python3-%{srcname} = %{version}-%{release}
|
||||
Requires: python3dist(cloudpickle) >= %{cloudpickle_version}
|
||||
Requires: python3dist(fsspec) >= %{fsspec_version}
|
||||
Requires: python3dist(partd) >= %{partd_version}
|
||||
Requires: python3dist(toolz) >= %{toolz_version}
|
||||
|
||||
%description -n python3-%{srcname}+bag
|
||||
This package installs dask with dependencies required for its bag feature.
|
||||
Dask is a flexible parallel computing library for analytics.
|
||||
|
||||
|
||||
%package -n python3-%{srcname}+dataframe
|
||||
Summary: Meta-package for python3-%{srcname} with dataframe feature
|
||||
BuildArch: noarch
|
||||
%{?python_provide:%python_provide python3-%{srcname}+dataframe}
|
||||
|
||||
Requires: python3-%{srcname} = %{version}-%{release}
|
||||
Requires: python3dist(fsspec) >= %{fsspec_version}
|
||||
Requires: python3dist(numpy) >= %{numpy_version}
|
||||
Requires: python3dist(pandas) >= %{pandas_version}
|
||||
Requires: python3dist(partd) >= %{partd_version}
|
||||
Requires: python3dist(toolz) >= %{toolz_version}
|
||||
|
||||
%description -n python3-%{srcname}+dataframe
|
||||
This package installs dask with dependencies required for its dataframe
|
||||
feature.
|
||||
Dask is a flexible parallel computing library for analytics.
|
||||
|
||||
|
||||
%package -n python3-%{srcname}+delayed
|
||||
Summary: Meta-package for python3-%{srcname} with delayed feature
|
||||
BuildArch: noarch
|
||||
%{?python_provide:%python_provide python3-%{srcname}+delayed}
|
||||
|
||||
Requires: python3-%{srcname} = %{version}-%{release}
|
||||
Requires: python3dist(cloudpickle) >= %{cloudpickle_version}
|
||||
Requires: python3dist(toolz) >= %{toolz_version}
|
||||
|
||||
%description -n python3-%{srcname}+delayed
|
||||
This package installs dask with dependencies required for its delayed feature.
|
||||
Dask is a flexible parallel computing library for analytics.
|
||||
|
||||
|
||||
%pyproject_extras_subpkg -n python3-%{srcname} array bag dataframe delayed
|
||||
%if %{without bootstrap}
|
||||
%package -n python3-%{srcname}+distributed
|
||||
Summary: Meta-package for python3-%{srcname} with distributed feature
|
||||
BuildArch: noarch
|
||||
%{?python_provide:%python_provide python3-%{srcname}+distributed}
|
||||
|
||||
Requires: python3-%{srcname} = %{version}-%{release}
|
||||
Requires: python3dist(distributed) >= %{distributed_version}
|
||||
|
||||
%description -n python3-%{srcname}+distributed
|
||||
This package installs dask with dependencies required for its distributed
|
||||
feature.
|
||||
Dask is a flexible parallel computing library for analytics.
|
||||
%pyproject_extras_subpkg distributed
|
||||
%endif
|
||||
|
||||
|
||||
|
@ -159,7 +66,7 @@ Summary: dask documentation
|
|||
|
||||
BuildRequires: python3dist(dask_sphinx_theme) >= 1.3.5
|
||||
BuildRequires: python3dist(numpydoc)
|
||||
BuildRequires: python3dist(sphinx)
|
||||
BuildRequires: python3dist(sphinx) >= 4
|
||||
|
||||
%description -n python-%{srcname}-doc
|
||||
Documentation for dask.
|
||||
|
@ -169,11 +76,16 @@ Documentation for dask.
|
|||
%prep
|
||||
%autosetup -n %{srcname}-%{version} -p1
|
||||
|
||||
# Remove bundled egg-info
|
||||
rm -rf %{srcname}.egg-info
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -r -x test,array,bag,dataframe,delayed
|
||||
%if %{without bootstrap}
|
||||
%pyproject_buildrequires -x distributed
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
%if %{without bootstrap}
|
||||
# generate html docs
|
||||
|
@ -184,7 +96,9 @@ rm -rf html/.{doctrees,buildinfo}
|
|||
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
|
||||
%pyproject_save_files %{srcname}
|
||||
|
||||
|
||||
%check
|
||||
|
@ -204,28 +118,9 @@ pytest_args=(
|
|||
|
||||
%{pytest} "${pytest_args[@]}"
|
||||
|
||||
%files -n python3-%{srcname}
|
||||
%files -n python3-%{srcname} -f %{pyproject_files}
|
||||
%doc README.rst
|
||||
%license LICENSE.txt
|
||||
%{python3_sitelib}/%{srcname}/
|
||||
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
|
||||
|
||||
%files -n python3-%{srcname}+array
|
||||
%{?python_extras_subpkg:%ghost %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info}
|
||||
|
||||
%files -n python3-%{srcname}+bag
|
||||
%{?python_extras_subpkg:%ghost %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info}
|
||||
|
||||
%files -n python3-%{srcname}+dataframe
|
||||
%{?python_extras_subpkg:%ghost %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info}
|
||||
|
||||
%files -n python3-%{srcname}+delayed
|
||||
%{?python_extras_subpkg:%ghost %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info}
|
||||
|
||||
%if %{without bootstrap}
|
||||
%files -n python3-%{srcname}+distributed
|
||||
%{?python_extras_subpkg:%ghost %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info}
|
||||
%endif
|
||||
|
||||
%if %{without bootstrap}
|
||||
%files -n python-%{srcname}-doc
|
||||
|
|
Loading…
Reference in New Issue