From d63dc5dc16391f8add38d7195f07a4828e53305ffa5a5de78fec256be7fedccb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 30 Mar 2025 08:22:22 +0000 Subject: [PATCH] - update to 2025.03.0: * spelling fix: possibilites -> possibilities * Duck array ops for `all` and `any` * `map_over_datasets`: fix error message for wrong result type * Use resolution-dependent default units for lazy time encoding * DOC: Fix 404 on Cubed's documentation * use mean of min/max years as offset in calculation of datetime64 mean * Fix dataarray drop attrs * Start splitting up `dataset.py` * Upgrade mypy to 1.15 * implement map_over_datasets kwargs * run CI on `python=3.13` * Prune data tree for Isomorphic operations * Skip failing array api test. * Pass node path to tokenize in `open_datatree` * Fix false timedelta decoding `SerializationWarning` and improve warning message * Add typos check to pre-commit hooks * Ensure KeyError raised for zarr datasets missing dim names * Improve handling of dtype and NaT when encoding/decoding masked and packaged datetimes and timedeltas * fix and supress some test warnings * Update asv badge url in README.md * Fix broken Zarr test * Pin pandas stubs * Use `to_numpy` in time decoding * explicitly cast the dtype of `where`'s condition parameter to `bool` * Better `uv` compatibility OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=111 --- python-xarray.changes | 123 +++++++++++++++++++++++++++++++++++++ python-xarray.spec | 22 ++++--- xarray-2024.11.0-gh.tar.gz | 3 - xarray-2025.03.0-gh.tar.gz | 3 + 4 files changed, 138 insertions(+), 13 deletions(-) delete mode 100644 xarray-2024.11.0-gh.tar.gz create mode 100644 xarray-2025.03.0-gh.tar.gz diff --git a/python-xarray.changes b/python-xarray.changes index fcd18a3..27d5332 100644 --- a/python-xarray.changes +++ b/python-xarray.changes @@ -1,3 +1,126 @@ +------------------------------------------------------------------- +Sun Mar 30 08:19:37 UTC 2025 - Dirk Müller + +- update to 2025.03.0: + * spelling fix: possibilites -> possibilities + * Duck array ops for `all` and `any` + * `map_over_datasets`: fix error message for wrong result type + * Use resolution-dependent default units for lazy time encoding + * DOC: Fix 404 on Cubed's documentation + * use mean of min/max years as offset in calculation of + datetime64 mean + * Fix dataarray drop attrs + * Start splitting up `dataset.py` + * Upgrade mypy to 1.15 + * implement map_over_datasets kwargs + * run CI on `python=3.13` + * Prune data tree for Isomorphic operations + * Skip failing array api test. + * Pass node path to tokenize in `open_datatree` + * Fix false timedelta decoding `SerializationWarning` and + improve warning message + * Add typos check to pre-commit hooks + * Ensure KeyError raised for zarr datasets missing dim names + * Improve handling of dtype and NaT when encoding/decoding + masked and packaged datetimes and timedeltas + * fix and supress some test warnings + * Update asv badge url in README.md + * Fix broken Zarr test + * Pin pandas stubs + * Use `to_numpy` in time decoding + * explicitly cast the dtype of `where`'s condition parameter to + `bool` + * Better `uv` compatibility + * Change `python_files` in `pyproject.toml` to a list + * Don't skip tests when on a `mypy` branch + * Fix type issues from pandas stubs + * Refactor compatibility modules into xarray.compat package + * Fix version in requires_zarr_v3 fixture + * Adds open_datatree and load_datatree to the tutorial module + * Update flaky pydap test +- update to 2025.01.2: + * This release brings non-nanosecond datetime and timedelta + resolution to xarray, sharded reading in zarr, suggestion of + correct names when trying to access non-existent data + variables and bug fixes! + * Remove outdated quantile test. + * Relax nanosecond datetime restriction in CF time decoding + * fix upstream dev issues + * Suggest the correct name when no key matches in the dataset + * cast type to PDDatetimeUnitOptions + * Update time coding tests to assert exact equality + * remove dask-expr from CI runs, fix related tests + * Use zarr-fixture to prevent thread leakage errors + * fix weighted polyfit for arrays with more than 2 dimensions + * Fix test_doc_example on big-endian systems + * Remove unnecessary a article + * Fix some typing + * Use flox for grouped first, last + * Add `shards` to `valid_encodings` to enable sharded Zarr + writing + * Add shxarray to the xarray ecosystem list + * Remove repetitive that (replace it with the) + * Enable `DataTree.to_zarr(compute=False)` + * Add `time_unit` argument to `CFTimeIndex.to_datetimeindex` + * fix mean for datetime-like using the respective time + resolution unit + * Enable passing a `CFTimedeltaCoder` to `decode_timedelta` + * Revert "Use flox for grouped first, last (#9986)" + * Fix infer_freq, check for subdtype "datetime64"/"timedelta64" + * Migrate Zarr region="auto" tests to a class + * Fix the push method when the limit parameter is bigger than + the chunk… + * Use `freq="D"` instead of `freq="d"` in `pd.timedelta_range` + * cast `numpy` scalars to arrays in `NamedArray.from_array` + * remove outdated type-ignores + * Preserve order of variables in combine_by_coords + * Add FAQ answer about API stability & backwards compatibility + * release notes: 2025.01.2 +- update to 2025.01.1: + * split out CFDatetimeCoder, deprecate use_cftime as kwarg + * Fix zarr upstream tests +- update to 2025.01.0: + * Add blank What's New + * Upgrade ruff to 0.8.0 + * Improved duck array wrapping + * Use compute instead of load in plot + * Described default centre argument behaviour in rolling + functions + * Fix type annotations for `get_axis_num` (GH 9822) + * Test type annotations for Variable.get_axis_num + * FIX: gracfully handle missing seaborn dependency + * move ensure_dtype_not_object from conventions to backends + * Fixed function links in dataarray.py and dataset.py + * Fix seed for random test data. + * Set `zarr_format` for `zarr.consolidate_metadata` + * Reference ncdata in docs. + * Add Pyproject pre-commit hooks + * dask tests: Avoid check for non-copies, xfail pandas + comparison + * Avoid local functions in push + * Add token to codecov + * Remove deprecated behavior for non-dim positional args + * Fix/silence upstream tests + * finalize deprecation of "closed"-parameter + * Fix upstream Zarr compatibility + * Fix interpolation when non-numeric coords are present. + * Use integers instead of randint + * Add "unit"-parameter to date_range, enhance iso time parser + to us + * Add missing DataTree attributes to docs + * move scalar-handling logic into `possibly_convert_objects` + * remove unused "type: ignore" comments in test_plot.py + * Optimize idxmin, idxmax with dask + * Cache pre-existing Zarr arrays in Zarr backend + * Explicitly configure ReadTheDocs build to use conf.py + * Skip dask rolling + * Rewrite interp to use `apply_ufunc` + * friendlier error messages for missing chunk managers + * Edit serialization error message + * Enhance and move ISO-8601 parser to coding.times + * fix warning from scipy backend guess_can_open on directory + * time coding refactor + ------------------------------------------------------------------- Fri Dec 6 12:27:55 UTC 2024 - Ben Greiner diff --git a/python-xarray.spec b/python-xarray.spec index a25e0bb..26ff87b 100644 --- a/python-xarray.spec +++ b/python-xarray.spec @@ -1,7 +1,7 @@ # # spec file for package python-xarray # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,16 +25,14 @@ %define psuffix %{nil} %endif -%define ghversion 2024.11.0 - %{?sle15_python_module_pythons} Name: python-xarray%{psuffix} -Version: 2024.11.0 +Version: 2025.03.0 Release: 0 Summary: N-D labeled arrays and datasets in Python License: Apache-2.0 URL: https://github.com/pydata/xarray -Source: https://github.com/pydata/xarray/archive/refs/tags/v%{ghversion}.tar.gz#/xarray-%{ghversion}-gh.tar.gz +Source: https://github.com/pydata/xarray/archive/refs/tags/v%{version}.tar.gz#/xarray-%{version}-gh.tar.gz # PATCH-FEATURE-UPSTREAM local_dataset.patch gh#pydata/xarray#5377 mcepl@suse.com # fix xr.tutorial.open_dataset to work with the preloaded cache. Patch0: local_dataset.patch @@ -79,7 +77,7 @@ Recommends: python-numbagg >= 0.6 %description accel The [accel] extra for xarray, N-D labeled arrays and datasets in Python Except flox and numbagg, because they are not packaged yet. -Use `pip-%{python_bin_suffix} --user install flox numbagg` to install from PyPI, if needed. +Use `pip --user install flox numbagg` to install from PyPI, if needed. %package complete Summary: The python xarray[complete] extra @@ -109,7 +107,7 @@ Recommends: python-pre-commit %description dev The [dev] extra for xarray, N-D labeled arrays and datasets in Python -Except pre-commit, Use `pip-%{python_bin_suffix} --user install pre-commit` to install, if needed. +Except pre-commit, Use `pip --user install pre-commit` to install, if needed. %package io Summary: The python xarray[io] extra @@ -132,6 +130,9 @@ 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 >= 2023.11 @@ -139,6 +140,7 @@ The [io] extra for xarray, N-D labeled arrays and datasets in Python # #%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 @@ -151,10 +153,10 @@ Recommends: python-nc-time-axis 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-%{python_bin_suffix} --user install nc-time-axis` to install from PyPI, if needed. +Use `pip --user install nc-time-axis` to install from PyPI, if needed. %prep -%autosetup -p1 -n xarray-%{ghversion} +%autosetup -p1 -n xarray-%{version} chmod -x xarray/util/print_versions.py %build @@ -197,7 +199,7 @@ donttest="$donttest or test_h5netcdf_storage_options or test_source_encoding_alw %doc README.md %license LICENSE licenses/ %{python_sitelib}/xarray -%{python_sitelib}/xarray-%{version}.dist-info +%{python_sitelib}/xarray-*.dist-info %files %{python_files accel} %doc README.md diff --git a/xarray-2024.11.0-gh.tar.gz b/xarray-2024.11.0-gh.tar.gz deleted file mode 100644 index b6a54ae..0000000 --- a/xarray-2024.11.0-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b3b22095e1069ec6dee4694fd2da64147eac75eb1161206b8f970841786e0056 -size 3236300 diff --git a/xarray-2025.03.0-gh.tar.gz b/xarray-2025.03.0-gh.tar.gz new file mode 100644 index 0000000..0b00c1c --- /dev/null +++ b/xarray-2025.03.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5e3bb7e087feaa86f98f0a6bccb40e29205f2f9d6a8329741c2c843ab0f624c +size 3281586