Blame python-dask.spec

325cfc4
%global srcname dask
325cfc4
325cfc4
# Requires distributed, which is a loop.
f882b41
# Also, some tests require packages that require dask itself.
325cfc4
# Force bootstrap for package review.
418969d
%bcond_without bootstrap
325cfc4
325cfc4
Name:           python-%{srcname}
fa0cdbd
Version:        2.5.0
42ee5dc
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
fa0cdbd
BuildRequires:  python3dist(fsspec) >= 0.5.1
325cfc4
BuildRequires:  python3dist(graphviz)
325cfc4
BuildRequires:  python3dist(ipython)
43ffda9
BuildRequires:  python3dist(numpy) >= 1.13
43ffda9
BuildRequires:  python3dist(pandas) >= 0.21
418969d
BuildRequires:  python3dist(partd) >= 0.3.10
325cfc4
BuildRequires:  python3dist(pytest)
f882b41
BuildRequires:  python3dist(pytest-xdist)
325cfc4
BuildRequires:  python3dist(pyyaml)
325cfc4
BuildRequires:  python3dist(setuptools)
325cfc4
BuildRequires:  python3dist(toolz) >= 0.7.3
c3b3086
%if %{without bootstrap}
418969d
BuildRequires:  python3dist(distributed) >= 2
f882b41
BuildRequires:  python3dist(scikit-image)
f882b41
BuildRequires:  python3dist(xarray)
325cfc4
%endif
f882b41
# Optional test requirements.
f882b41
BuildRequires:  python3dist(fastavro)
f882b41
BuildRequires:  python3dist(h5py)
f882b41
BuildRequires:  python3dist(psutil)
f882b41
BuildRequires:  python3dist(requests)
f882b41
BuildRequires:  python3dist(sqlalchemy)
f882b41
BuildRequires:  python3dist(zarr)
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}
43ffda9
Requires:       python3dist(numpy) >= 1.13
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
fa0cdbd
Requires:       python3dist(fsspec) >= 0.5.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
fa0cdbd
Requires:       python3dist(fsspec) >= 0.5.1
43ffda9
Requires:       python3dist(numpy) >= 1.13
43ffda9
Requires:       python3dist(pandas) >= 0.21
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}
418969d
Requires:       python3dist(distributed) >= 2
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
c3b3086
%if %{without 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
c3b3086
%if %{without 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
f882b41
export PYTHONDONTWRITEBYTECODE=1
f882b41
%ifarch armv7hl
f882b41
    %{__python3} -m pytest -m 'not network' -n 2
f882b41
%else
f882b41
    %{__python3} -m pytest -m 'not network' -n auto
f882b41
%endif
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
c3b3086
%if %{without bootstrap}
325cfc4
%files -n python-%{srcname}-doc
325cfc4
%doc html
325cfc4
%license LICENSE.txt
325cfc4
%endif
325cfc4
325cfc4
325cfc4
%changelog
fa0cdbd
* Sat Sep 28 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.0-1
fa0cdbd
- Update to latest version
fa0cdbd
28bf35d
* Fri Sep 13 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.0-1
28bf35d
- Update to latest version
28bf35d
42ee5dc
* Thu Sep 12 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.0-1
42ee5dc
- Update to latest version
42ee5dc
4955386
* Mon Aug 19 2019 Miro HronĨok <mhroncok@redhat.com> - 2.1.0-3
4955386
- Rebuilt for Python 3.8
4955386
782e03c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
782e03c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
782e03c
418969d
* Tue Jul 23 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1.0-1
418969d
- Update to latest version
418969d
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.