Add more optional test dependencies.
This commit is contained in:
parent
e61d995e1e
commit
f882b4157d
|
@ -1,6 +1,7 @@
|
|||
%global srcname dask
|
||||
|
||||
# Requires distributed, which is a loop.
|
||||
# Also, some tests require packages that require dask itself.
|
||||
# Force bootstrap for package review.
|
||||
%bcond_without bootstrap
|
||||
|
||||
|
@ -34,12 +35,22 @@ BuildRequires: python3dist(numpy) >= 1.13
|
|||
BuildRequires: python3dist(pandas) >= 0.21
|
||||
BuildRequires: python3dist(partd) >= 0.3.10
|
||||
BuildRequires: python3dist(pytest)
|
||||
BuildRequires: python3dist(pytest-xdist)
|
||||
BuildRequires: python3dist(pyyaml)
|
||||
BuildRequires: python3dist(setuptools)
|
||||
BuildRequires: python3dist(toolz) >= 0.7.3
|
||||
%if %{without bootstrap}
|
||||
BuildRequires: python3dist(distributed) >= 2
|
||||
BuildRequires: python3dist(scikit-image)
|
||||
BuildRequires: python3dist(xarray)
|
||||
%endif
|
||||
# Optional test requirements.
|
||||
BuildRequires: python3dist(fastavro)
|
||||
BuildRequires: python3dist(h5py)
|
||||
BuildRequires: python3dist(psutil)
|
||||
BuildRequires: python3dist(requests)
|
||||
BuildRequires: python3dist(sqlalchemy)
|
||||
BuildRequires: python3dist(zarr)
|
||||
|
||||
Recommends: python3-%{srcname}+array = %{version}-%{release}
|
||||
Recommends: python3-%{srcname}+bag = %{version}-%{release}
|
||||
|
@ -163,8 +174,12 @@ rm -rf html/.{doctrees,buildinfo}
|
|||
|
||||
|
||||
%check
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
%{__python3} -m pytest -m 'not network'
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
%ifarch armv7hl
|
||||
%{__python3} -m pytest -m 'not network' -n 2
|
||||
%else
|
||||
%{__python3} -m pytest -m 'not network' -n auto
|
||||
%endif
|
||||
|
||||
|
||||
%files -n python3-%{srcname}
|
||||
|
|
Loading…
Reference in New Issue