2019-03-07 00:58:51 +00:00
|
|
|
%global srcname dask
|
|
|
|
|
|
|
|
# Requires distributed, which is a loop.
|
2019-09-14 07:48:43 +00:00
|
|
|
# Also, some tests require packages that require dask itself.
|
2019-03-07 00:58:51 +00:00
|
|
|
# Force bootstrap for package review.
|
2019-07-23 05:48:25 +00:00
|
|
|
%bcond_without bootstrap
|
2019-03-07 00:58:51 +00:00
|
|
|
|
|
|
|
Name: python-%{srcname}
|
2022-02-12 10:20:47 +00:00
|
|
|
Version: 2022.2.0
|
|
|
|
%global tag 2022.02.0
|
2021-07-31 07:34:37 +00:00
|
|
|
Release: %autorelease
|
2019-03-07 00:58:51 +00:00
|
|
|
Summary: Parallel PyData with Task Scheduling
|
|
|
|
|
|
|
|
License: BSD
|
2020-02-20 04:59:31 +00:00
|
|
|
URL: https://github.com/dask/dask/
|
2022-01-16 00:20:12 +00:00
|
|
|
Source0: https://github.com/dask/dask/archive/%{tag}/%{srcname}-%{tag}.tar.gz
|
2022-01-16 05:36:45 +00:00
|
|
|
# Grab this from the sdist until we switch back to it.
|
|
|
|
Source1: _version.py
|
2021-03-07 09:12:32 +00:00
|
|
|
# https://github.com/dask/dask/issues/6725
|
|
|
|
Patch0001: 0001-Skip-test_encoding_gh601-on-big-endian-machines.patch
|
2019-03-07 00:58:51 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Dask is a flexible parallel computing library for analytics.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3dist(graphviz)
|
|
|
|
BuildRequires: python3dist(ipython)
|
2019-07-23 06:43:50 +00:00
|
|
|
%if %{without bootstrap}
|
2019-09-14 07:48:43 +00:00
|
|
|
BuildRequires: python3dist(scikit-image)
|
|
|
|
BuildRequires: python3dist(xarray)
|
2019-03-07 00:58:51 +00:00
|
|
|
%endif
|
2019-09-14 07:48:43 +00:00
|
|
|
# Optional test requirements.
|
|
|
|
BuildRequires: python3dist(fastavro)
|
|
|
|
BuildRequires: python3dist(h5py)
|
|
|
|
BuildRequires: python3dist(psutil)
|
|
|
|
BuildRequires: python3dist(requests)
|
|
|
|
BuildRequires: python3dist(sqlalchemy)
|
|
|
|
BuildRequires: python3dist(zarr)
|
2019-03-07 00:58:51 +00:00
|
|
|
|
2019-03-07 01:38:30 +00:00
|
|
|
Recommends: python3-%{srcname}+array = %{version}-%{release}
|
|
|
|
Recommends: python3-%{srcname}+bag = %{version}-%{release}
|
|
|
|
Recommends: python3-%{srcname}+dataframe = %{version}-%{release}
|
|
|
|
Recommends: python3-%{srcname}+delayed = %{version}-%{release}
|
2021-08-21 21:09:31 +00:00
|
|
|
Recommends: python3-%{srcname}+diagnostics = %{version}-%{release}
|
2019-11-13 03:04:07 +00:00
|
|
|
%if %{without bootstrap}
|
2019-03-07 01:38:30 +00:00
|
|
|
Recommends: python3-%{srcname}+distributed = %{version}-%{release}
|
2019-11-13 03:04:07 +00:00
|
|
|
%endif
|
2019-03-07 01:38:30 +00:00
|
|
|
|
|
|
|
%description -n python3-%{srcname}
|
|
|
|
Dask is a flexible parallel computing library for analytics.
|
|
|
|
|
|
|
|
|
2021-08-21 21:09:31 +00:00
|
|
|
%pyproject_extras_subpkg -n python3-%{srcname} array bag dataframe delayed diagnostics
|
2019-11-13 03:04:07 +00:00
|
|
|
%if %{without bootstrap}
|
2021-08-21 20:10:35 +00:00
|
|
|
%pyproject_extras_subpkg distributed
|
2019-11-13 03:04:07 +00:00
|
|
|
%endif
|
2019-03-07 00:58:51 +00:00
|
|
|
|
|
|
|
|
2019-07-23 06:43:50 +00:00
|
|
|
%if %{without bootstrap}
|
2019-03-07 00:58:51 +00:00
|
|
|
%package -n python-%{srcname}-doc
|
|
|
|
Summary: dask documentation
|
|
|
|
|
2021-01-19 07:33:52 +00:00
|
|
|
BuildRequires: python3dist(dask_sphinx_theme) >= 1.3.5
|
2019-03-07 00:58:51 +00:00
|
|
|
BuildRequires: python3dist(numpydoc)
|
2021-08-21 20:10:35 +00:00
|
|
|
BuildRequires: python3dist(sphinx) >= 4
|
2019-03-07 00:58:51 +00:00
|
|
|
|
|
|
|
%description -n python-%{srcname}-doc
|
2021-06-17 10:24:36 +00:00
|
|
|
Documentation for dask.
|
2019-03-07 00:58:51 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-01-16 00:20:12 +00:00
|
|
|
%autosetup -n %{srcname}-%{tag} -p1
|
2022-01-16 05:36:45 +00:00
|
|
|
cp %SOURCE1 %{srcname}/
|
2019-03-07 00:58:51 +00:00
|
|
|
|
2021-08-21 20:10:35 +00:00
|
|
|
|
|
|
|
%generate_buildrequires
|
2021-08-21 21:09:31 +00:00
|
|
|
%pyproject_buildrequires -r -x test,array,bag,dataframe,delayed,diagnostics
|
2021-08-21 20:10:35 +00:00
|
|
|
%if %{without bootstrap}
|
|
|
|
%pyproject_buildrequires -x distributed
|
|
|
|
%endif
|
|
|
|
|
2019-03-07 00:58:51 +00:00
|
|
|
|
|
|
|
%build
|
2021-08-21 20:10:35 +00:00
|
|
|
%pyproject_wheel
|
2019-03-07 00:58:51 +00:00
|
|
|
|
2019-07-23 06:43:50 +00:00
|
|
|
%if %{without bootstrap}
|
2019-03-07 00:58:51 +00:00
|
|
|
# generate html docs
|
|
|
|
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
|
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2021-08-21 20:10:35 +00:00
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
%pyproject_save_files %{srcname}
|
2019-03-07 00:58:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2021-06-17 10:24:36 +00:00
|
|
|
%ifarch arm
|
|
|
|
# Is there a way to do this in one line?
|
|
|
|
%global have_arm 1
|
2019-09-14 07:48:43 +00:00
|
|
|
%endif
|
2019-03-07 00:58:51 +00:00
|
|
|
|
2021-06-17 10:24:36 +00:00
|
|
|
pytest_args=(
|
|
|
|
-m 'not network'
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1968947#c4
|
2021-06-20 06:20:01 +00:00
|
|
|
--deselect=dask/dataframe/io/tests/test_sql.py::test_select_from_select
|
2021-06-17 10:24:36 +00:00
|
|
|
|
|
|
|
-n %[0%{?have_arm}?"2":"auto"]
|
2022-01-16 00:20:12 +00:00
|
|
|
|
|
|
|
# Ignore https://github.com/numpy/numpy/issues/20225 and Pandas issues
|
|
|
|
-W ignore::DeprecationWarning
|
2021-06-17 10:24:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
%{pytest} "${pytest_args[@]}"
|
2019-03-07 00:58:51 +00:00
|
|
|
|
2021-08-21 20:10:35 +00:00
|
|
|
%files -n python3-%{srcname} -f %{pyproject_files}
|
2019-03-07 00:58:51 +00:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE.txt
|
2019-03-07 01:38:30 +00:00
|
|
|
|
2019-07-23 06:43:50 +00:00
|
|
|
%if %{without bootstrap}
|
2019-03-07 00:58:51 +00:00
|
|
|
%files -n python-%{srcname}-doc
|
|
|
|
%doc html
|
|
|
|
%license LICENSE.txt
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-07-31 07:34:37 +00:00
|
|
|
%autochangelog
|