public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-xarray] rawhide: Allow building without dask
@ 2026-06-13 11:13
0 siblings, 0 replies; only message in thread
From: @ 2026-06-13 11:13 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-xarray
Branch : rawhide
Commit : 70d390af36c7b98bcb98141a684bc0e0a5ca3154
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-06-13T11:04:24+02:00
Stats : +20/-9 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-xarray/c/70d390af36c7b98bcb98141a684bc0e0a5ca3154?branch=rawhide
Log:
Allow building without dask
[skip changelog]
---
diff --git a/python-xarray.spec b/python-xarray.spec
index 23a169a..2978bc4 100644
--- a/python-xarray.spec
+++ b/python-xarray.spec
@@ -1,5 +1,12 @@
%global srcname xarray
+# A bootstrap build disables tests needing dask,
+# allowing to break a dependency loop between xarray and dask.
+# Note that dask has a similar approach, thus we have 2 ways of breaking the loop,
+# so we can attempt both, whichever is more convenient.
+%bcond bootstrap 0
+%bcond dask %{without bootstrap}
+
Name: python-%{srcname}
Version: 2026.2.0
Release: %autorelease
@@ -17,15 +24,18 @@ BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(bottleneck)
-BuildRequires: python3dist(dask[array]) >= 2023.11
-BuildRequires: python3dist(dask[dataframe]) >= 2023.11
BuildRequires: python3dist(pint) >= 0.22
BuildRequires: python3dist(pytest) >= 2.7.1
BuildRequires: python3dist(pytest-asyncio)
BuildRequires: python3dist(pytest-xdist)
BuildRequires: python3dist(pytest-timeout)
+BuildRequires: python3dist(pytz)
BuildRequires: python3dist(rasterio) >= 1.3
BuildRequires: python3dist(seaborn) >= 0.13
+%if %{with dask}
+BuildRequires: python3dist(dask[array]) >= 2023.11
+BuildRequires: python3dist(dask[dataframe]) >= 2023.11
+%endif
%global _description %{expand: \
Xarray (formerly xray) is an open source project and Python package that
@@ -69,14 +79,15 @@ rm -rf xarray
echo >> pytest.ini # Ignore any command-line arguments from upstream.
-pytest_args=(
- -n auto
- -m "not network"
- # this test somehow crashes python interpreter entirely, was xfail upstream till recently
- -k 'not test_save_mfdataset_compute_false_roundtrip'
-)
+# this test somehow crashes python interpreter entirely, was xfail upstream till recently
+k="${k-}${k+ and }not test_save_mfdataset_compute_false_roundtrip"
+
+%if %{without dask}
+k="${k-}${k+ and }not test_source_encoding_always_present_with_fsspec"
+k="${k-}${k+ and }not test_h5netcdf_storage_options"
+%endif
-%{pytest} -ra "${pytest_args[@]}" --pyargs xarray --timeout 300 --full-trace
+%{pytest} -ra -n auto -m "not network" ${k:+-k "${k}"} --pyargs xarray --timeout 300 --full-trace
%files -n python3-%{srcname} -f %{pyproject_files}
%license licenses/*
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-13 11:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-13 11:13 [rpms/python-xarray] rawhide: Allow building without dask
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox