Accepting request 1171757 from home:bnavigator:branches:devel:languages:python:numeric

- Update to 2024.3.0
  ## New Features
  * Partial writes to existing chunks with region or append_dim
    will now raise an error (unless safe_chunks=False); previously
    an error would only be raised on new variables. (PR8459,
    GH8371, GH8882) By Maximilian Roos.
  * Grouped and resampling quantile calculations now use the
    vectorized algorithm in flox>=0.9.4 if present. By Deepak
    Cherian.
  * Do not broadcast in arithmetic operations when global option
    arithmetic_broadcast=False (GH6806, PR8784). By Etienne Schalk
    and Deepak Cherian.
  * Add the .oindex property to Explicitly Indexed Arrays for
    orthogonal indexing functionality. (GH8238, PR8750) By Anderson
    Banihirwe.
  * Add the .vindex property to Explicitly Indexed Arrays for
    vectorized indexing functionality. (GH8238, PR8780) By Anderson
    Banihirwe.
  * Expand use of .oindex and .vindex properties. (:pull: 8790) By
    Anderson Banihirwe and Deepak Cherian.
  * Allow creating xr.Coordinates objects with no indexes (PR8711)
    By Benoit Bovy and Tom Nicholas.
  * Enable plotting of datetime.dates. (GH8866, PR8873) By Sascha
    Hofmann.
  ## Breaking changes
  * Don’t allow overwriting index variables with to_zarr region
    writes. (GH8589, PR8876). By Deepak Cherian.
  ## Bug fixes
  * The default freq parameter in xr.date_range() and
    xr.cftime_range() is set to 'D' only if periods, start, or end

OBS-URL: https://build.opensuse.org/request/show/1171757
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=95
This commit is contained in:
2024-05-04 11:49:52 +00:00
committed by Git OBS Bridge
parent 826e3c68f7
commit 8d13d20192
6 changed files with 200 additions and 212 deletions

View File

@@ -25,20 +25,21 @@
%define psuffix %{nil}
%endif
%define skip_python39 1
%define ghversion 2024.03.0
%{?sle15_python_module_pythons}
Name: python-xarray%{psuffix}
Version: 2024.2.0
Version: 2024.3.0
Release: 0
Summary: N-D labeled arrays and datasets in Python
License: Apache-2.0
URL: https://github.com/pydata/xarray
Source: https://files.pythonhosted.org/packages/source/x/xarray/xarray-%{version}.tar.gz
Source: https://github.com/pydata/xarray/archive/refs/tags/v%{ghversion}.tar.gz#/xarray-%{ghversion}-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
# PATCH-FIX-UPSTREAM xarray-pr8797-tokenize.patch gh#pydata/xarray#8797 fixes gh#pydata/xarray#8788
Patch1: https://github.com/pydata/xarray/pull/8797.patch#/xarray-pr8797-tokenize.patch
# PATCH-FIX-UPSTREAM xarray-pr8953-nodatatreeprune.patch gh#pydata/xarray#8953
Patch1: xarray-pr8953-nodatatreeprune.patch
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
@@ -149,15 +150,7 @@ 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.
%prep
%autosetup -p1 -n xarray-%{version}
%if "%{version}" == "2024.2.0"
# gh#pydata/xarray#8768, remove this after the next update!
rm -r xarray/tests/datatree
%else
echo "You failed to update the specfile"
exit 1
%endif
%autosetup -p1 -n xarray-%{ghversion}
chmod -x xarray/util/print_versions.py
%build