325cfc4
%global srcname dask
325cfc4
325cfc4
# Requires distributed, which is a loop.
325cfc4
%{?_with_bootstrap: %global bootstrap 1}
325cfc4
# Force bootstrap for package review.
325cfc4
%global bootstrap 1
325cfc4
325cfc4
Name:           python-%{srcname}
aa9c040
Version:        1.2.1
4462903
Release:        1%{?dist}
325cfc4
Summary:        Parallel PyData with Task Scheduling
325cfc4
325cfc4
License:        BSD
325cfc4
URL:            http://github.com/dask/dask/
361d6f0
Source0:        %pypi_source
e2bcbfc
# https://github.com/dask/dask/issues/4561
4462903
Patch0001:      0001-XFail-partitioning-test-on-some-arches.patch
325cfc4
325cfc4
BuildArch:      noarch
325cfc4
325cfc4
%description
325cfc4
Dask is a flexible parallel computing library for analytics.
325cfc4
325cfc4
325cfc4
%package -n     python3-%{srcname}
325cfc4
Summary:        %{summary}
325cfc4
%{?python_provide:%python_provide python3-%{srcname}}
325cfc4
325cfc4
BuildRequires:  python3-devel
325cfc4
BuildRequires:  python3dist(cloudpickle) >= 0.2.1
325cfc4
BuildRequires:  python3dist(graphviz)
325cfc4
BuildRequires:  python3dist(ipython)
aa9c040
BuildRequires:  python3dist(numpy) >= 1.13.0
aa9c040
BuildRequires:  python3dist(pandas) >= 0.21.0
325cfc4
BuildRequires:  python3dist(partd) >= 0.3.8
325cfc4
BuildRequires:  python3dist(pytest)
325cfc4
BuildRequires:  python3dist(pyyaml)
325cfc4
BuildRequires:  python3dist(setuptools)
325cfc4
BuildRequires:  python3dist(toolz) >= 0.7.3
325cfc4
%if ! 0%{?bootstrap}
325cfc4
BuildRequires:  python3dist(distributed) >= 1.22
325cfc4
%endif
325cfc4
0e49bd2
Recommends:     python3-%{srcname}+array = %{version}-%{release}
0e49bd2
Recommends:     python3-%{srcname}+bag = %{version}-%{release}
0e49bd2
Recommends:     python3-%{srcname}+dataframe = %{version}-%{release}
0e49bd2
Recommends:     python3-%{srcname}+delayed = %{version}-%{release}
0e49bd2
Recommends:     python3-%{srcname}+distributed = %{version}-%{release}
0e49bd2
0e49bd2
%description -n python3-%{srcname}
0e49bd2
Dask is a flexible parallel computing library for analytics.
0e49bd2
0e49bd2
0e49bd2
%package -n     python3-%{srcname}+array
0e49bd2
Summary:        Meta-package for python3-%{srcname} with array feature
0e49bd2
BuildArch:      noarch
0e49bd2
%{?python_provide:%python_provide python3-%{srcname}+array}
0e49bd2
0e49bd2
Requires:       python3-%{srcname} = %{version}-%{release}
aa9c040
Requires:       python3dist(numpy) >= 1.13.0
0e49bd2
Requires:       python3dist(toolz) >= 0.7.3
0e49bd2
0e49bd2
%description -n python3-%{srcname}+array
0e49bd2
This package installs dask with dependencies required for its array feature.
0e49bd2
Dask is a flexible parallel computing library for analytics.
0e49bd2
0e49bd2
0e49bd2
%package -n     python3-%{srcname}+bag
0e49bd2
Summary:        Meta-package for python3-%{srcname} with bag feature
0e49bd2
BuildArch:      noarch
0e49bd2
%{?python_provide:%python_provide python3-%{srcname}+bag}
0e49bd2
0e49bd2
Requires:       python3-%{srcname} = %{version}-%{release}
0e49bd2
Requires:       python3dist(cloudpickle) >= 0.2.1
0e49bd2
Requires:       python3dist(partd) >= 0.3.8
0e49bd2
Requires:       python3dist(toolz) >= 0.7.3
0e49bd2
0e49bd2
%description -n python3-%{srcname}+bag
0e49bd2
This package installs dask with dependencies required for its bag feature.
0e49bd2
Dask is a flexible parallel computing library for analytics.
0e49bd2
0e49bd2
0e49bd2
%package -n     python3-%{srcname}+dataframe
0e49bd2
Summary:        Meta-package for python3-%{srcname} with dataframe feature
0e49bd2
BuildArch:      noarch
0e49bd2
%{?python_provide:%python_provide python3-%{srcname}+dataframe}
0e49bd2
0e49bd2
Requires:       python3-%{srcname} = %{version}-%{release}
325cfc4
Requires:       python3dist(cloudpickle) >= 0.2.1
aa9c040
Requires:       python3dist(numpy) >= 1.13.0
aa9c040
Requires:       python3dist(pandas) >= 0.21.0
325cfc4
Requires:       python3dist(partd) >= 0.3.8
325cfc4
Requires:       python3dist(toolz) >= 0.7.3
325cfc4
0e49bd2
%description -n python3-%{srcname}+dataframe
0e49bd2
This package installs dask with dependencies required for its dataframe
0e49bd2
feature.
0e49bd2
Dask is a flexible parallel computing library for analytics.
0e49bd2
0e49bd2
0e49bd2
%package -n     python3-%{srcname}+delayed
0e49bd2
Summary:        Meta-package for python3-%{srcname} with delayed feature
0e49bd2
BuildArch:      noarch
0e49bd2
%{?python_provide:%python_provide python3-%{srcname}+delayed}
0e49bd2
0e49bd2
Requires:       python3-%{srcname} = %{version}-%{release}
0e49bd2
Requires:       python3dist(toolz) >= 0.7.3
0e49bd2
0e49bd2
%description -n python3-%{srcname}+delayed
0e49bd2
This package installs dask with dependencies required for its delayed feature.
0e49bd2
Dask is a flexible parallel computing library for analytics.
0e49bd2
0e49bd2
0e49bd2
%package -n     python3-%{srcname}+distributed
0e49bd2
Summary:        Meta-package for python3-%{srcname} with distributed feature
0e49bd2
BuildArch:      noarch
0e49bd2
%{?python_provide:%python_provide python3-%{srcname}+distributed}
0e49bd2
0e49bd2
Requires:       python3-%{srcname} = %{version}-%{release}
0e49bd2
Requires:       python3dist(distributed) >= 1.22
0e49bd2
0e49bd2
%description -n python3-%{srcname}+distributed
0e49bd2
This package installs dask with dependencies required for its distributed
0e49bd2
feature.
325cfc4
Dask is a flexible parallel computing library for analytics.
325cfc4
325cfc4
325cfc4
%if ! 0%{?bootstrap}
325cfc4
%package -n python-%{srcname}-doc
325cfc4
Summary:        dask documentation
325cfc4
325cfc4
BuildRequires:  python3dist(dask_sphinx_theme)
325cfc4
BuildRequires:  python3dist(numpydoc)
325cfc4
BuildRequires:  python3dist(sphinx)
325cfc4
325cfc4
%description -n python-%{srcname}-doc
325cfc4
Documentation for dask
325cfc4
%endif
325cfc4
325cfc4
325cfc4
%prep
325cfc4
%autosetup -n %{srcname}-%{version} -p1
325cfc4
325cfc4
# Remove bundled egg-info
325cfc4
rm -rf %{srcname}.egg-info
325cfc4
325cfc4
325cfc4
%build
325cfc4
%py3_build
325cfc4
325cfc4
%if ! 0%{?bootstrap}
325cfc4
# generate html docs
325cfc4
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
325cfc4
# remove the sphinx-build leftovers
325cfc4
rm -rf html/.{doctrees,buildinfo}
325cfc4
%endif
325cfc4
325cfc4
325cfc4
%install
325cfc4
%py3_install
325cfc4
325cfc4
325cfc4
%check
325cfc4
PYTHONDONTWRITEBYTECODE=1 \
325cfc4
    %{__python3} -m pytest -m 'not network'
325cfc4
325cfc4
325cfc4
%files -n python3-%{srcname}
325cfc4
%doc README.rst
325cfc4
%license LICENSE.txt
325cfc4
%{python3_sitelib}/%{srcname}
325cfc4
%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info
325cfc4
0e49bd2
%files -n python3-%{srcname}+array
0e49bd2
%files -n python3-%{srcname}+bag
0e49bd2
%files -n python3-%{srcname}+dataframe
0e49bd2
%files -n python3-%{srcname}+delayed
0e49bd2
%files -n python3-%{srcname}+distributed
0e49bd2
325cfc4
%if ! 0%{?bootstrap}
325cfc4
%files -n python-%{srcname}-doc
325cfc4
%doc html
325cfc4
%license LICENSE.txt
325cfc4
%endif
325cfc4
325cfc4
325cfc4
%changelog
1f11f51
* Sat Apr 13 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.0-1
1f11f51
- Update to latest version
1f11f51
361d6f0
* Mon Apr 01 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.1.5-1
361d6f0
- Update to latest version
361d6f0
4462903
* Sat Mar 09 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.1.4-1
4462903
- Update to latest version
4462903
- Remove now unnecessary patches
e2bcbfc
7277876
* Wed Mar 06 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.1.3-3
7277876
- Mark partitioning test as expected failure on 32-bit systems as well
7277876
0e49bd2
* Wed Mar 06 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.1.3-2
0e49bd2
- Add meta-subpackages for individual features
0e49bd2
325cfc4
* Sat Mar 02 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.1.3-1
325cfc4
- Initial package.