8 Commits
f36 ... f37

Author SHA1 Message Date
Elliott Sales de Andrade
3bebaa049c Update to latest version (#2232901) 2023-09-15 02:37:47 -04:00
Elliott Sales de Andrade
ad60aec436 Fix tests with Matplotlib 3.8.0 2023-09-15 02:03:11 -04:00
Elliott Sales de Andrade
dd372c6ddb Update to latest version (#2208416) 2023-07-19 22:05:07 -04:00
Elliott Sales de Andrade
f0dca5ea32 Rebuild for Python 3.12b4 2023-07-19 06:02:04 -04:00
Elliott Sales de Andrade
8294269fad Skip flaky test 2023-05-08 04:49:44 -04:00
Elliott Sales de Andrade
ea961bf619 Update to latest version (#2131120) 2023-05-08 03:02:23 -04:00
Elliott Sales de Andrade
099f6f89e8 Fix sources
[skip changelog]
2023-01-18 20:35:50 -05:00
Elliott Sales de Andrade
72b1741aac Update to latest version (#2131120) 2023-01-18 19:50:22 -05:00
7 changed files with 56 additions and 62 deletions

5
.gitignore vendored
View File

@@ -19,3 +19,8 @@
/xarray-data-dbd07bb91a7112db0fd2f912c146999f9d436b0e.tar.gz
/xarray-2022.6.0.tar.gz
/xarray-data-86974d54ce83a130303fe8caa629e60deb3cb6e5.tar.gz
/xarray-2023.1.0.tar.gz
/xarray-2023.4.2.tar.gz
/xarray-data-7d8290e0be9d2a8f4b4381641f20a97db6eaea3d.tar.gz
/xarray-2023.7.0.tar.gz
/xarray-2023.8.0.tar.gz

View File

@@ -1,40 +0,0 @@
From 338e50f33a7d286f592a64278349f380f108340c Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Fri, 15 Mar 2019 22:31:18 -0400
Subject: [PATCH 1/3] DOC: Don't download RGB.byte.tif during build.
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
doc/gallery/plot_rasterio.py | 2 +-
doc/gallery/plot_rasterio_rgb.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/gallery/plot_rasterio.py b/doc/gallery/plot_rasterio.py
index 853923a3..bc8b4421 100644
--- a/doc/gallery/plot_rasterio.py
+++ b/doc/gallery/plot_rasterio.py
@@ -23,7 +23,7 @@ from pyproj import Transformer
import xarray as xr
# Read the data
-url = "https://github.com/rasterio/rasterio/raw/master/tests/data/RGB.byte.tif"
+url = "RGB.byte.tif"
da = xr.open_rasterio(url)
# Compute the lon/lat coordinates with pyproj
diff --git a/doc/gallery/plot_rasterio_rgb.py b/doc/gallery/plot_rasterio_rgb.py
index 912224ac..f2a7b2db 100644
--- a/doc/gallery/plot_rasterio_rgb.py
+++ b/doc/gallery/plot_rasterio_rgb.py
@@ -18,7 +18,7 @@ import matplotlib.pyplot as plt
import xarray as xr
# Read the data
-url = "https://github.com/rasterio/rasterio/raw/master/tests/data/RGB.byte.tif"
+url = "RGB.byte.tif"
da = xr.open_rasterio(url)
# The data is in UTM projection. We have to set it manually until
--
2.36.1

View File

@@ -1,7 +1,7 @@
From 09bf051c792f195465c7330b57be204605b88d2c Mon Sep 17 00:00:00 2001
From f2b1952202db32b956566648dec4cfd302f54316 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Fri, 15 Mar 2019 22:48:25 -0400
Subject: [PATCH 2/3] DOC: Skip examples using unpackaged dependencies.
Subject: [PATCH 1/2] DOC: Skip examples using unpackaged dependencies.
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
@@ -9,10 +9,10 @@ Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 file changed, 2 insertions(+)
diff --git a/doc/user-guide/io.rst b/doc/user-guide/io.rst
index beab5fc0..1109e578 100644
index dc495b9f..e03080a1 100644
--- a/doc/user-guide/io.rst
+++ b/doc/user-guide/io.rst
@@ -857,6 +857,7 @@ installed, xarray can convert a ``DataArray`` into a ``Cube`` using
@@ -921,6 +921,7 @@ installed, xarray can convert a ``DataArray`` into a ``Cube`` using
:py:meth:`DataArray.to_iris`:
.. ipython:: python
@@ -20,7 +20,7 @@ index beab5fc0..1109e578 100644
da = xr.DataArray(
np.random.rand(4, 5),
@@ -871,6 +872,7 @@ Conversely, we can create a new ``DataArray`` object from a ``Cube`` using
@@ -935,6 +936,7 @@ Conversely, we can create a new ``DataArray`` object from a ``Cube`` using
:py:meth:`DataArray.from_iris`:
.. ipython:: python
@@ -29,5 +29,5 @@ index beab5fc0..1109e578 100644
da_cube = xr.DataArray.from_iris(cube)
da_cube
--
2.36.1
2.39.2

View File

@@ -1,7 +1,7 @@
From a0c1d288ae09cbe8055b4531dffe285aa8b549b4 Mon Sep 17 00:00:00 2001
From f85d7fd7257f3c109987022e35f81da24a32bdbf Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Sat, 16 Mar 2019 02:59:15 -0400
Subject: [PATCH 3/3] DOC: Don't print out conda/pip environment.
Subject: [PATCH 2/2] DOC: Don't print out conda/pip environment.
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
@@ -9,7 +9,7 @@ Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 file changed, 8 deletions(-)
diff --git a/doc/conf.py b/doc/conf.py
index 7e28953b..49bfdaca 100644
index eb861004..faed9753 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -16,7 +16,6 @@ import datetime
@@ -35,5 +35,5 @@ index 7e28953b..49bfdaca 100644
with suppress(ImportError):
--
2.36.1
2.39.2

29
8186.patch Normal file
View File

@@ -0,0 +1,29 @@
From c7391fca66e1fd24b175cfffab692af20628fe2b Mon Sep 17 00:00:00 2001
From: Kyle Sunden <git@ksunden.space>
Date: Thu, 14 Sep 2023 20:18:04 -0500
Subject: [PATCH] Update contourf call check for mpl 3.8
---
xarray/tests/test_plot.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py
index 8b2dfbdec4..a6c15a8600 100644
--- a/xarray/tests/test_plot.py
+++ b/xarray/tests/test_plot.py
@@ -167,7 +167,14 @@ def imshow_called(self, plotmethod):
def contourf_called(self, plotmethod):
plotmethod()
- paths = plt.gca().findobj(mpl.collections.PathCollection)
+
+ # Compatible with mpl before (PathCollection) and after (QuadContourSet) 3.8
+ def matchfunc(x):
+ return isinstance(
+ x, (mpl.collections.PathCollection, mpl.contour.QuadContourSet)
+ )
+
+ paths = plt.gca().findobj(matchfunc)
return len(paths) > 0

View File

@@ -1,23 +1,23 @@
%global srcname xarray
%global data_commit 86974d54ce83a130303fe8caa629e60deb3cb6e5
%global data_commit 7d8290e0be9d2a8f4b4381641f20a97db6eaea3d
%bcond_with docs
Name: python-%{srcname}
Version: 2022.6.0
Version: 2023.8.0
Release: %autorelease
Summary: N-D labeled arrays and datasets in Python
License: ASL 2.0
License: Apache-2.0
URL: https://github.com/pydata/xarray
Source0: %pypi_source %{srcname}
# Data for examples only.
Source1: https://github.com/pydata/xarray-data/archive/%{data_commit}/xarray-data-%{data_commit}.tar.gz
Source2: https://github.com/rasterio/rasterio/raw/1.2.10/tests/data/RGB.byte.tif
# All Fedora specific.
Patch0001: 0001-DOC-Don-t-download-RGB.byte.tif-during-build.patch
Patch0002: 0002-DOC-Skip-examples-using-unpackaged-dependencies.patch
Patch0003: 0003-DOC-Don-t-print-out-conda-pip-environment.patch
Patch0001: 0001-DOC-Skip-examples-using-unpackaged-dependencies.patch
Patch0002: 0002-DOC-Don-t-print-out-conda-pip-environment.patch
# Fix tests with Matplotlib 3.8.0.
Patch0003: https://github.com/pydata/xarray/pull/8186.patch
BuildArch: noarch
@@ -47,7 +47,7 @@ for advanced analytics and visualization with these data structures.
Xarray was inspired by and borrows heavily from pandas, the popular data
analysis package focused on labelled tabular data. It is particularly
tailored to working with netCDF files, which were the source of xarray's
tailored to working with netCDF files, which were the source of xarrays
data model, and integrates tightly with dask for parallel computing.}
%description %{_description}
@@ -84,7 +84,6 @@ Documentation for xarray
%if %{with docs}
# Provide example datasets for building docs.
tar xf %SOURCE1 --transform='s~^\(%{srcname}-data-%{data_commit}/\)~\1.xarray_tutorial_data/~'
cp -p %SOURCE2 ./doc/gallery/
%endif
@@ -116,6 +115,8 @@ rm -rf xarray
pytest_args=(
-n auto
-m "not network"
# https://github.com/pydata/xarray/issues/7513
-k 'not test_open_mfdataset_manyfiles'
)
%{pytest} -ra "${pytest_args[@]}" --pyargs xarray

View File

@@ -1,3 +1,2 @@
SHA512 (xarray-2022.6.0.tar.gz) = 415bd84246d6d2b8aebf316ac9ef82ca7afeacce718349b75479c0aa693e2866dfe236e6dcaf41cae68afd7a99408f5027c938e6b7f447f5323e076b804f5165
SHA512 (xarray-data-86974d54ce83a130303fe8caa629e60deb3cb6e5.tar.gz) = c7cddd4de81908110f65fac9df63b68ade0d37b9983b2bf7a6d5021e419d5b7e23e6bee316be4f802a7fbd70952bb5e3eead91d544c8b8bd6ffb2747d3fca64f
SHA512 (RGB.byte.tif) = 34aa1b196f6c5880530d42ec8a25193bc79db803a8427adc9b115373d222b9f4318a04f06c8b37118df7e09d96b9c470ecec543c604af18861f11b786ed6fbfd
SHA512 (xarray-2023.8.0.tar.gz) = 1d712e9fbf266906ac35c199eead77cec76ba5b4b4462140bef2fffd227a52d2cba9670a042cb669b0567320e9308bf81fe4e84c1cfcff234ad2332d72e895a3
SHA512 (xarray-data-7d8290e0be9d2a8f4b4381641f20a97db6eaea3d.tar.gz) = 3734ad5649b9ba23e8fe52ac1fc34694dcb3c761a1817e520726a83d31e725e2448aa0109ad7ad385572ae7d6a285bf1407d104f87227127a6a51d73b797a952