Use an arched base package with noarch binary RPMs
- Conditionalize fastavro BR, which is not available on 32-bit - Run tests on all arches to reliably track arch-dependent bugs - Add necessary arch-dependent skips for failing tests
This commit is contained in:
parent
7e84e06e4f
commit
e5d1690c6b
@ -5,6 +5,10 @@
|
||||
# Force bootstrap for package review.
|
||||
%bcond_without bootstrap
|
||||
|
||||
# We have an arched package to detect arch-dependent issues in dependencies,
|
||||
# but all of the installable RPMs are noarch and there is no compiled code.
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 2022.5.0
|
||||
%global tag 2022.05.0
|
||||
@ -37,8 +41,6 @@ Patch: 0001-Skip-test_encoding_gh601-on-big-endian-machines.patch
|
||||
# tabs rather than spaces in setup.cfg.
|
||||
Patch: dask-2022.5.0-pr-9113.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Dask is a flexible parallel computing library for analytics.
|
||||
|
||||
@ -46,6 +48,8 @@ Dask is a flexible parallel computing library for analytics.
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %{summary}
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3dist(graphviz)
|
||||
BuildRequires: python3dist(ipython)
|
||||
@ -54,7 +58,11 @@ BuildRequires: python3dist(scikit-image)
|
||||
BuildRequires: python3dist(xarray)
|
||||
%endif
|
||||
# Optional test requirements.
|
||||
# Fastavro does not support 32 bit architectures and is ExcludeArch:
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1943932
|
||||
%ifnarch %{arm32} %{ix86}
|
||||
BuildRequires: python3dist(fastavro)
|
||||
%endif
|
||||
BuildRequires: python3dist(h5py)
|
||||
BuildRequires: python3dist(psutil)
|
||||
BuildRequires: python3dist(requests)
|
||||
@ -101,6 +109,8 @@ Dask is a flexible parallel computing library for analytics.
|
||||
%package -n python-%{srcname}-doc
|
||||
Summary: dask documentation
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3dist(dask_sphinx_theme) >= 1.3.5
|
||||
BuildRequires: python3dist(numpydoc)
|
||||
BuildRequires: python3dist(sphinx) >= 4
|
||||
@ -216,6 +226,8 @@ pytest_args=(
|
||||
|
||||
# Ignore https://github.com/numpy/numpy/issues/20225 and Pandas issues
|
||||
-W ignore::DeprecationWarning
|
||||
|
||||
-k "${k-}"
|
||||
)
|
||||
|
||||
%{pytest} "${pytest_args[@]}"
|
||||
|
Loading…
Reference in New Issue
Block a user