From abf60408f1954da814299243fcf04596f7e9cdb140a1f231e0209c1290e9cefa Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sun, 24 Nov 2024 14:36:27 +0000 Subject: [PATCH] - disabled tests requiring dask OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=105 --- python-xarray.changes | 1 + python-xarray.spec | 21 ++++++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/python-xarray.changes b/python-xarray.changes index a1c5287..22326b6 100644 --- a/python-xarray.changes +++ b/python-xarray.changes @@ -210,6 +210,7 @@ Sun Nov 24 13:08:38 UTC 2024 - Sebastian Wagner - disable the 'parallel' subpackage because dask is unavailable 3.12, which is because numba is unavailable on 3.13 https://build.opensuse.org/request/show/1225144 https://github.com/numba/numba/issues/9760 +- disabled tests requiring dask ------------------------------------------------------------------- Wed Sep 4 09:11:37 UTC 2024 - Ben Greiner diff --git a/python-xarray.spec b/python-xarray.spec index b5365d7..b2d1e0b 100644 --- a/python-xarray.spec +++ b/python-xarray.spec @@ -45,9 +45,9 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-numpy >= 1.23 +Requires: python-numpy >= 1.24 Requires: python-packaging >= 23.1 -Requires: python-pandas >= 2 +Requires: python-pandas >= 2.1 Obsoletes: python-xray <= 0.7 BuildArch: noarch %if %{with test} @@ -70,11 +70,11 @@ The dataset is an in-memory representation of a netCDF file. Summary: The python xarray[accel] extra Requires: python-Bottleneck Requires: python-opt-einsum -Requires: python-scipy +Requires: python-scipy >= 1.11 Requires: python-xarray = %{version} # not available yet Recommends: python-flox -Recommends: python-numbagg +Recommends: python-numbagg >= 0.6 %description accel The [accel] extra for xarray, N-D labeled arrays and datasets in Python @@ -115,12 +115,12 @@ Except pre-commit, Use `pip-%{python_bin_suffix} --user install pre-commit` to i Summary: The python xarray[io] extra Requires: python-cftime Requires: python-fsspec -Requires: python-h5netcdf +Requires: python-h5netcdf >= 1.3 Requires: python-netCDF4 Requires: python-pooch -Requires: python-scipy +Requires: python-scipy >= 1.11 Requires: python-xarray = %{version} -Requires: python-zarr +Requires: python-zarr >= 2.16 %description io The [io] extra for xarray, N-D labeled arrays and datasets in Python @@ -129,14 +129,15 @@ The [io] extra for xarray, N-D labeled arrays and datasets in Python + + #%%package parallel #Summary: The python xarray[parallel] extra -#Requires: python-dask-complete +#Requires: python-dask-complete >= 2023.11 #Requires: python-xarray = %%{version} # #%description parallel #The [parallel] extra for xarray, N-D labeled arrays and datasets in Python - %package viz Summary: The python xarray[viz] extra Requires: python-matplotlib @@ -183,6 +184,8 @@ fi donttest="$donttest or TestH5NetCDFDataRos3Driver" # NetCDF4 fails with these unsupported drivers donttest="$donttest or (TestNetCDF4 and test_compression_encoding and (szip or zstd or blosc_lz or blosc_zlib))" +# skip parallelcompat as the 'parallel' subpackage is not built (see changes file) +donttest="$donttest or test_h5netcdf_storage_options or test_source_encoding_always_present_with_fsspec" %pytest -n auto -rsEf -k "not ($donttest)" xarray %endif