diff --git a/python-xarray.changes b/python-xarray.changes index 5119dea..5da51fb 100644 --- a/python-xarray.changes +++ b/python-xarray.changes @@ -1,3 +1,79 @@ +------------------------------------------------------------------- +Mon Dec 22 11:46:24 UTC 2025 - Ben Greiner + +- Update to 2025.12.0 + * This release rolls back the default engine for HTTP urls, adds + support for DataTree objects in combine_nested and contains + numerous bug fixes. +- Release 2025.11.0 + * This release changes the default for keep_attrs such that + attributes are preserved by default, adds support for DataTree + in top-level functions, and contains several memory and + performance improvements as well as a number of bug fixes. +- Release 2025.10.0 and 2025.10.1 + * These releases revert a breaking change to Xarray's preferred + netCDF backend. +- Release 2025.09.1 + * This release contains improvements to netCDF IO and the + DataTree.from_dict() constructor, as well as a variety of bug + fixes. In particular, the default netCDF backend has switched + from netCDF4 to h5netcdf, which is typically faster. +- Release 2025.09.0 + * This release brings a number of small improvements and fixes, + especially related to writing DataTree objects and netCDF files + to disk. + ## New Features + * Support rechunking by SeasonResampler for seasonal data + analysis (GH10425, PR10519). By Dhruva Kumar Kaushal. + * Add convenience methods to Coordinates (PR10318) By Justus + Magin. + * Added load_datatree() for loading DataTree objects into memory + from disk. It has the same relationship to open_datatree(), as + load_dataset() has to open_dataset(). By Stephan Hoyer. + * compute=False is now supported by DataTree.to_netcdf() and + DataTree.to_zarr(). By Stephan Hoyer. + * open_dataset will now correctly infer a path ending in .zarr/ + as zarr By Ian Hunt-Isaak. + ## Breaking changes + * Following pandas 3.0 (pandas-dev/pandas#61985), Day is no + longer considered a Tick-like frequency. Therefore non-None + values of offset and non-"start_day" values of origin will have + no effect when resampling to a daily frequency for objects + indexed by a xarray.CFTimeIndex. As in pandas-dev/pandas#62101 + warnings will be emitted if non default values are provided in + this context (GH10640, PR10650). By Spencer Clark. + * The default backend engine used by Dataset.to_netcdf() and + DataTree.to_netcdf() is now chosen consistently with + open_dataset() and open_datatree(), using whichever netCDF + libraries are available and valid, and preferring netCDF4 to + h5netcdf to scipy (GH10654). This will change the default + backend in some edge cases (e.g., from scipy to netCDF4 when + writing to a file-like object or bytes). To override these new + defaults, set engine explicitly. By Stephan Hoyer. + * The return value of Dataset.to_netcdf() without path is now a + memoryview object instead of bytes (PR10656). This removes an + unnecessary memory copy and ensures consistency when using + either engine="scipy" or engine="h5netcdf". If you need a bytes + object, simply wrap the return value of to_netcdf() with + bytes(). By Stephan Hoyer. +- Release 2025.8.0 + * This release brings the ability to load xarray objects + asynchronously, write netCDF as bytes, fixes a number of bugs, + and starts an important deprecation cycle for changing the + default values of keyword arguments for various xarray + combining functions. +- Release 2025.7.0 + * This release extends xarray's support for custom index classes, + restores support for reading netCDF3 files with SciPy, updates + minimum dependencies, and fixes a number of bugs. +- Release 2025.6.0 + * This release brings HTML reprs to the documentation, fixes to + flexible Xarray indexes, performance optimizations, more + ergonomic seasonal grouping and resampling +- Update extras subpackages. + * Re-enable parallel. + * Remove dev: incomplete deps and not useful for system install + ------------------------------------------------------------------- Sun Mar 30 08:19:37 UTC 2025 - Dirk Müller diff --git a/python-xarray.spec b/python-xarray.spec index c86e53b..6e64c7d 100644 --- a/python-xarray.spec +++ b/python-xarray.spec @@ -1,7 +1,7 @@ # # spec file for package python-xarray # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,7 +27,7 @@ %{?sle15_python_module_pythons} Name: python-xarray%{psuffix} -Version: 2025.03.0 +Version: 2025.12.0 Release: 0 Summary: N-D labeled arrays and datasets in Python License: Apache-2.0 @@ -38,19 +38,26 @@ Source: https://github.com/pydata/xarray/archive/refs/tags/v%{version}.t Patch0: local_dataset.patch # PATCH-FIX-OPENSUSE: skip dependency on pytest-mypy Patch1: no-mypy-test-plugin.patch -BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module base >= 3.11} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-numpy >= 1.24 -Requires: python-packaging >= 23.1 -Requires: python-pandas >= 2.1 +Requires: python-numpy >= 1.26 +Requires: python-packaging >= 24.1 +Requires: python-pandas >= 2.2 Obsoletes: python-xray <= 0.7 BuildArch: noarch %if %{with test} +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest-env} +BuildRequires: %{python_module pytest-timeout} +BuildRequires: %{python_module pytest-xdist} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module ruff >= 0.8.0} BuildRequires: %{python_module xarray-complete = %{version}} %endif # /SECTION @@ -66,15 +73,15 @@ The Common Data Model for self-describing scientific data is used. The dataset is an in-memory representation of a netCDF file. %package accel -# for minimum versions, check ci/requirements/min-all-deps.yml Summary: The python xarray[accel] extra Requires: python-Bottleneck +Requires: python-numba >= 0.62 Requires: python-opt-einsum -Requires: python-scipy >= 1.11 +Requires: python-scipy >= 1.13 Requires: python-xarray = %{version} # not available yet Recommends: python-flox -Recommends: python-numbagg >= 0.6 +Recommends: python-numbagg >= 0.8 %description accel The [accel] extra for xarray, N-D labeled arrays and datasets in Python @@ -85,78 +92,51 @@ Use `pip --user install flox numbagg` to install from PyPI, if needed. Summary: The python xarray[complete] extra Requires: python-xarray = %{version} Requires: python-xarray-accel = %{version} -Requires: python-xarray-dev = %{version} Requires: python-xarray-io = %{version} -#Requires: python-xarray-parallel = %%{version} +Requires: python-xarray-parallel = %{version} Requires: python-xarray-viz = %{version} %description complete The [complete] extra for xarray, N-D labeled arrays and datasets in Python -%package dev -Summary: The python xarray[dev] extra -Requires: python-hypothesis -Requires: python-pytest -Requires: python-pytest-cov -Requires: python-pytest-env -Requires: python-pytest-timeout -Requires: python-pytest-xdist -Requires: python-ruff -Requires: python-xarray = %{version} -Requires: python-xarray-complete = %{version} -# Not available and not really useful for us -Recommends: python-pre-commit - -%description dev -The [dev] extra for xarray, N-D labeled arrays and datasets in Python -Except pre-commit, Use `pip --user install pre-commit` to install, if needed. - %package io Summary: The python xarray[io] extra Requires: python-cftime Requires: python-fsspec -Requires: python-h5netcdf >= 1.3 -Requires: python-netCDF4 +Requires: python-h5netcdf +Requires: python-netCDF4 >= 1.6 Requires: python-pooch -Requires: python-scipy >= 1.11 +Requires: python-scipy >= 1.13 Requires: python-xarray = %{version} -Requires: python-zarr >= 2.16 +Requires: python-zarr >= 2.18 +# Not available yet +Recommends: python-pydap %description io 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-xarray = %{version} +%description parallel +The [parallel] extra for xarray, N-D labeled arrays and datasets in Python - - - - - - - - - - -#%%package parallel -#Summary: The python xarray[parallel] extra -#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 +Requires: python-matplotlib >= 3.8 Requires: python-seaborn Requires: python-xarray = %{version} # Not available yet +Recommends: python-cartopy >= 0.23 Recommends: python-nc-time-axis %description viz The [viz] extra for xarray, N-D labeled arrays and datasets in Python -Except nc-time-axis, because it's not packaged yet. -Use `pip --user install nc-time-axis` to install from PyPI, if needed. +Except nc-time-axis and cartopy, because they're not packaged yet. +Use `pip --user install nc-time-axis cartopy` to install from PyPI, if needed. %prep %autosetup -p1 -n xarray-%{version} @@ -191,8 +171,6 @@ 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 @@ -212,17 +190,13 @@ donttest="$donttest or test_h5netcdf_storage_options or test_source_encoding_alw %doc README.md %license LICENSE -%files %{python_files dev} -%doc README.md -%license LICENSE - %files %{python_files io} %doc README.md %license LICENSE -#%%files %%{python_files parallel} -#%doc README.md -#%%license LICENSE +%files %{python_files parallel} +%doc README.md +%license LICENSE %files %{python_files viz} %doc README.md diff --git a/xarray-2025.03.0-gh.tar.gz b/xarray-2025.03.0-gh.tar.gz deleted file mode 100644 index 0b00c1c..0000000 --- a/xarray-2025.03.0-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d5e3bb7e087feaa86f98f0a6bccb40e29205f2f9d6a8329741c2c843ab0f624c -size 3281586 diff --git a/xarray-2025.12.0-gh.tar.gz b/xarray-2025.12.0-gh.tar.gz new file mode 100644 index 0000000..07a6565 --- /dev/null +++ b/xarray-2025.12.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17aa3879c0d7c6c57f2f4a85b9c9684a5872bb591d9478405312d83a57d56ecd +size 3068745