Update to 2025.9.0 upstream release
- Resolves: rhbz#2371514 Commit authored by Packit automation (https://packit.dev/)
This commit is contained in:
committed by
Elliott Sales de Andrade
parent
8df0d82123
commit
6f9b465990
@@ -30,3 +30,4 @@
|
|||||||
/xarray-2024.10.0.tar.gz
|
/xarray-2024.10.0.tar.gz
|
||||||
/xarray-2025.1.1.tar.gz
|
/xarray-2025.1.1.tar.gz
|
||||||
/xarray-2025.4.0.tar.gz
|
/xarray-2025.4.0.tar.gz
|
||||||
|
/xarray-2025.9.0.tar.gz
|
||||||
|
|||||||
@@ -1,53 +0,0 @@
|
|||||||
From 7dcc6fb328ff5ca0695a019d00da5714911ab766 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
||||||
Date: Sun, 19 Jan 2025 04:47:23 -0500
|
|
||||||
Subject: [PATCH] Avoid unsafe casts from float to unsigned int
|
|
||||||
|
|
||||||
Fixes #9815
|
|
||||||
|
|
||||||
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
||||||
---
|
|
||||||
xarray/coding/variables.py | 5 ++++-
|
|
||||||
xarray/core/duck_array_ops.py | 10 ++++++++++
|
|
||||||
2 files changed, 14 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/xarray/coding/variables.py b/xarray/coding/variables.py
|
|
||||||
index 1b7bc95e..814406a2 100644
|
|
||||||
--- a/xarray/coding/variables.py
|
|
||||||
+++ b/xarray/coding/variables.py
|
|
||||||
@@ -345,7 +345,10 @@ class CFMaskCoder(VariableCoder):
|
|
||||||
if fill_value is not None and has_unsigned:
|
|
||||||
pop_to(encoding, attrs, "_Unsigned")
|
|
||||||
# XXX: Is this actually needed? Doesn't the backend handle this?
|
|
||||||
- data = duck_array_ops.astype(duck_array_ops.around(data), dtype)
|
|
||||||
+ signed_dtype = np.dtype(f"i{dtype.itemsize}")
|
|
||||||
+ data = duck_array_ops.view(
|
|
||||||
+ duck_array_ops.astype(duck_array_ops.around(data), signed_dtype), dtype
|
|
||||||
+ )
|
|
||||||
attrs["_FillValue"] = fill_value
|
|
||||||
|
|
||||||
return Variable(dims, data, attrs, encoding, fastpath=True)
|
|
||||||
diff --git a/xarray/core/duck_array_ops.py b/xarray/core/duck_array_ops.py
|
|
||||||
index 96330a64..268dbe4d 100644
|
|
||||||
--- a/xarray/core/duck_array_ops.py
|
|
||||||
+++ b/xarray/core/duck_array_ops.py
|
|
||||||
@@ -238,6 +238,16 @@ def astype(data, dtype, *, xp=None, **kwargs):
|
|
||||||
return xp.astype(data, dtype, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
+def view(data, *args, **kwargs):
|
|
||||||
+ if hasattr(data, "__array_namespace__"):
|
|
||||||
+ xp = get_array_namespace(data)
|
|
||||||
+ if xp == np:
|
|
||||||
+ # numpy currently doesn't have a view:
|
|
||||||
+ return data.view(*args, **kwargs)
|
|
||||||
+ return xp.view(data, *args, **kwargs)
|
|
||||||
+ return data.view(*args, **kwargs)
|
|
||||||
+
|
|
||||||
+
|
|
||||||
def asarray(data, xp=np, dtype=None):
|
|
||||||
converted = data if is_duck_array(data) else xp.asarray(data)
|
|
||||||
|
|
||||||
--
|
|
||||||
2.49.0
|
|
||||||
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
From 9b688c92bac2f5f0b91371af59f0d9ede076217c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
|
Date: Mon, 15 Sep 2025 05:49:16 -0400
|
||||||
|
Subject: [PATCH] Drop pydap from dependencies
|
||||||
|
|
||||||
|
We didn't have it since it wasn't available in Python 3.10+, and it's
|
||||||
|
not yet pcakaged.
|
||||||
|
|
||||||
|
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
|
---
|
||||||
|
pyproject.toml | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/pyproject.toml b/pyproject.toml
|
||||||
|
index 9da83f80..98c3e13d 100644
|
||||||
|
--- a/pyproject.toml
|
||||||
|
+++ b/pyproject.toml
|
||||||
|
@@ -39,7 +39,6 @@ complete = ["xarray[accel,etc,io,parallel,viz]"]
|
||||||
|
io = [
|
||||||
|
"netCDF4>=1.6.0",
|
||||||
|
"h5netcdf",
|
||||||
|
- "pydap",
|
||||||
|
"scipy>=1.13",
|
||||||
|
"zarr>=2.18",
|
||||||
|
"fsspec",
|
||||||
|
--
|
||||||
|
2.50.0
|
||||||
|
|
||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
This repository is maintained by packit.
|
This repository is maintained by packit.
|
||||||
https://packit.dev/
|
https://packit.dev/
|
||||||
The file was generated using packit 1.6.0.post1.dev2+gd5a7662a.
|
The file was generated using packit 1.11.0.post1.dev7+gfdcdf3a32.
|
||||||
|
|||||||
+3
-4
@@ -1,16 +1,15 @@
|
|||||||
%global srcname xarray
|
%global srcname xarray
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 2025.4.0
|
Version: 2025.9.0
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: N-D labeled arrays and datasets in Python
|
Summary: N-D labeled arrays and datasets in Python
|
||||||
|
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/pydata/xarray
|
URL: https://github.com/pydata/xarray
|
||||||
Source: %pypi_source %{srcname}
|
Source: %pypi_source %{srcname}
|
||||||
|
# Fedora specific.
|
||||||
# https://github.com/pydata/xarray/pull/9964
|
Patch: 0001-Drop-pydap-from-dependencies.patch
|
||||||
Patch: 0001-Avoid-unsafe-casts-from-float-to-unsigned-int.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
SHA512 (xarray-2025.4.0.tar.gz) = 8018bf2431f30194d057e363f8a72fb7ef99834ae14daec5b98e5e101b42c7b1199d583eb9621c9955830bb15b3c197b08e71c6a299abeb42a6a215a57ea5995
|
SHA512 (xarray-2025.9.0.tar.gz) = 0cc572de58c59badb383d20292cf092500192e1723c12423f7d4c87e110feb08156cff71c136e45dd35eb70941a55e44a88774b698d09ecd083a882a207317e1
|
||||||
|
|||||||
Reference in New Issue
Block a user