public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-xarray] rawhide: Allow building without dask
Date: Sat, 13 Jun 2026 11:13:51 GMT [thread overview]
Message-ID: <178134923167.1.3699494471012597085.rpms-python-xarray-70d390af36c7@fedoraproject.org> (raw)
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/*
reply other threads:[~2026-06-13 11:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178134923167.1.3699494471012597085.rpms-python-xarray-70d390af36c7@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox