Compare commits
+16
@@ -8,3 +8,19 @@
|
|||||||
/xarray-data-5fdb22b5613ba8176b9f6fa67be783d7810643eb.tar.gz
|
/xarray-data-5fdb22b5613ba8176b9f6fa67be783d7810643eb.tar.gz
|
||||||
/xarray-0.16.1.tar.gz
|
/xarray-0.16.1.tar.gz
|
||||||
/xarray-0.16.2.tar.gz
|
/xarray-0.16.2.tar.gz
|
||||||
|
/xarray-0.17.0.tar.gz
|
||||||
|
/xarray-0.18.2.tar.gz
|
||||||
|
/xarray-0.19.0.tar.gz
|
||||||
|
/xarray-0.20.1.tar.gz
|
||||||
|
/xarray-0.20.2.tar.gz
|
||||||
|
/xarray-0.21.0.tar.gz
|
||||||
|
/xarray-0.21.1.tar.gz
|
||||||
|
/xarray-2022.3.0.tar.gz
|
||||||
|
/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
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
From e1fe3194dcf9878b2e1895404ff13c0338ad0e1f 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/4] 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 99eb1fd1..3d797296 100644
|
|
||||||
--- a/doc/gallery/plot_rasterio.py
|
|
||||||
+++ b/doc/gallery/plot_rasterio.py
|
|
||||||
@@ -23,7 +23,7 @@ from rasterio.warp import transform
|
|
||||||
import xarray as xr
|
|
||||||
|
|
||||||
# Read the data
|
|
||||||
-url = "https://github.com/mapbox/rasterio/raw/master/tests/data/RGB.byte.tif"
|
|
||||||
+url = "RGB.byte.tif"
|
|
||||||
da = xr.open_rasterio(url)
|
|
||||||
|
|
||||||
# Compute the lon/lat coordinates with rasterio.warp.transform
|
|
||||||
diff --git a/doc/gallery/plot_rasterio_rgb.py b/doc/gallery/plot_rasterio_rgb.py
|
|
||||||
index 758d4cd3..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/mapbox/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.26.2
|
|
||||||
|
|
||||||
+10
-10
@@ -1,18 +1,18 @@
|
|||||||
From 1f0ab97be49d2fef87f0da7ca2bab33be41e2480 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>
|
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
Date: Fri, 15 Mar 2019 22:48:25 -0400
|
Date: Fri, 15 Mar 2019 22:48:25 -0400
|
||||||
Subject: [PATCH 2/4] 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>
|
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
---
|
---
|
||||||
doc/io.rst | 2 ++
|
doc/user-guide/io.rst | 2 ++
|
||||||
1 file changed, 2 insertions(+)
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
diff --git a/doc/io.rst b/doc/io.rst
|
diff --git a/doc/user-guide/io.rst b/doc/user-guide/io.rst
|
||||||
index 5119bac1..a2d70436 100644
|
index dc495b9f..e03080a1 100644
|
||||||
--- a/doc/io.rst
|
--- a/doc/user-guide/io.rst
|
||||||
+++ b/doc/io.rst
|
+++ b/doc/user-guide/io.rst
|
||||||
@@ -510,6 +510,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`:
|
:py:meth:`DataArray.to_iris`:
|
||||||
|
|
||||||
.. ipython:: python
|
.. ipython:: python
|
||||||
@@ -20,7 +20,7 @@ index 5119bac1..a2d70436 100644
|
|||||||
|
|
||||||
da = xr.DataArray(
|
da = xr.DataArray(
|
||||||
np.random.rand(4, 5),
|
np.random.rand(4, 5),
|
||||||
@@ -524,6 +525,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`:
|
:py:meth:`DataArray.from_iris`:
|
||||||
|
|
||||||
.. ipython:: python
|
.. ipython:: python
|
||||||
@@ -29,5 +29,5 @@ index 5119bac1..a2d70436 100644
|
|||||||
da_cube = xr.DataArray.from_iris(cube)
|
da_cube = xr.DataArray.from_iris(cube)
|
||||||
da_cube
|
da_cube
|
||||||
--
|
--
|
||||||
2.26.2
|
2.39.2
|
||||||
|
|
||||||
+11
-11
@@ -1,7 +1,7 @@
|
|||||||
From cc094db443b53f96b32708676e515658ada8313f 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>
|
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
Date: Sat, 16 Mar 2019 02:59:15 -0400
|
Date: Sat, 16 Mar 2019 02:59:15 -0400
|
||||||
Subject: [PATCH 3/4] 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>
|
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
---
|
---
|
||||||
@@ -9,31 +9,31 @@ Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|||||||
1 file changed, 8 deletions(-)
|
1 file changed, 8 deletions(-)
|
||||||
|
|
||||||
diff --git a/doc/conf.py b/doc/conf.py
|
diff --git a/doc/conf.py b/doc/conf.py
|
||||||
index 74c3fd12..27a2f7b7 100644
|
index eb861004..faed9753 100644
|
||||||
--- a/doc/conf.py
|
--- a/doc/conf.py
|
||||||
+++ b/doc/conf.py
|
+++ b/doc/conf.py
|
||||||
@@ -15,7 +15,6 @@
|
@@ -16,7 +16,6 @@ import datetime
|
||||||
import datetime
|
import inspect
|
||||||
import os
|
import os
|
||||||
import pathlib
|
import pathlib
|
||||||
-import subprocess
|
-import subprocess
|
||||||
import sys
|
import sys
|
||||||
from contextlib import suppress
|
from contextlib import suppress
|
||||||
|
from textwrap import dedent, indent
|
||||||
@@ -29,13 +28,6 @@ allowed_failures = set()
|
@@ -35,13 +34,6 @@ allowed_failures = set()
|
||||||
print("python exec:", sys.executable)
|
print("python exec:", sys.executable)
|
||||||
print("sys.path:", sys.path)
|
print("sys.path:", sys.path)
|
||||||
|
|
||||||
-if "conda" in sys.executable:
|
-if "CONDA_DEFAULT_ENV" in os.environ or "conda" in sys.executable:
|
||||||
- print("conda environment:")
|
- print("conda environment:")
|
||||||
- subprocess.run(["conda", "list"])
|
- subprocess.run([os.environ.get("CONDA_EXE", "conda"), "list"])
|
||||||
-else:
|
-else:
|
||||||
- print("pip environment:")
|
- print("pip environment:")
|
||||||
- subprocess.run(["pip", "list"])
|
- subprocess.run([sys.executable, "-m", "pip", "list"])
|
||||||
-
|
-
|
||||||
print(f"xarray: {xarray.__version__}, {xarray.__file__}")
|
print(f"xarray: {xarray.__version__}, {xarray.__file__}")
|
||||||
|
|
||||||
with suppress(ImportError):
|
with suppress(ImportError):
|
||||||
--
|
--
|
||||||
2.26.2
|
2.39.2
|
||||||
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
From 507bf6860cc59d7a1320e39b4138418874f7ca15 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
||||||
Date: Sat, 26 Sep 2020 23:10:31 -0400
|
|
||||||
Subject: [PATCH 4/4] Revert "un-xfail the pint assert_allclose and
|
|
||||||
assert_duckarray_equal tests"
|
|
||||||
|
|
||||||
This reverts commit e045bd3e1dcbeedd31205d8ceb4186e28edc6cc2.
|
|
||||||
|
|
||||||
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
||||||
---
|
|
||||||
xarray/tests/test_testing.py | 14 ++++++++++++--
|
|
||||||
1 file changed, 12 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/xarray/tests/test_testing.py b/xarray/tests/test_testing.py
|
|
||||||
index 30ea6aaa..0f2ae8b3 100644
|
|
||||||
--- a/xarray/tests/test_testing.py
|
|
||||||
+++ b/xarray/tests/test_testing.py
|
|
||||||
@@ -70,7 +70,12 @@ def test_assert_allclose(obj1, obj2):
|
|
||||||
pytest.param(
|
|
||||||
quantity,
|
|
||||||
id="pint",
|
|
||||||
- marks=pytest.mark.skipif(not has_pint, reason="requires pint"),
|
|
||||||
+ marks=[
|
|
||||||
+ pytest.mark.skipif(not has_pint, reason="requires pint"),
|
|
||||||
+ pytest.mark.xfail(
|
|
||||||
+ reason="inconsistencies in the return value of pint's implementation of eq"
|
|
||||||
+ ),
|
|
||||||
+ ],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
@@ -110,7 +115,12 @@ def test_assert_duckarray_equal_failing(duckarray, obj1, obj2):
|
|
||||||
pytest.param(
|
|
||||||
quantity,
|
|
||||||
id="pint",
|
|
||||||
- marks=pytest.mark.skipif(not has_pint, reason="requires pint"),
|
|
||||||
+ marks=[
|
|
||||||
+ pytest.mark.skipif(not has_pint, reason="requires pint"),
|
|
||||||
+ pytest.mark.xfail(
|
|
||||||
+ reason="inconsistencies in the return value of pint's implementation of eq"
|
|
||||||
+ ),
|
|
||||||
+ ],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
--
|
|
||||||
2.26.2
|
|
||||||
|
|
||||||
+29
@@ -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
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.2-3
|
||||||
|
- Second attempt - Rebuilt for
|
||||||
|
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jul 04 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.18.2-2
|
||||||
|
- Backport fixes to tests
|
||||||
|
|
||||||
|
* Thu Jun 17 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.18.2-1
|
||||||
|
- Update to latest version (#1957925)
|
||||||
|
- Skip failing tests (#1969172)
|
||||||
|
|
||||||
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.17.0-2
|
||||||
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
* Sat Mar 13 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.17.0-1
|
||||||
|
- Update to latest version (#1933230)
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Dec 12 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.16.2-1
|
||||||
|
- Update to latest version (#1902888)
|
||||||
|
|
||||||
|
* Sat Sep 26 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.16.1-1
|
||||||
|
- Update to latest version (#1880864)
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jul 12 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.16.0-1
|
||||||
|
- Update to latest version
|
||||||
|
|
||||||
|
* Tue Jun 23 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.1-3
|
||||||
|
- Backport patch to fix tests catching too many warnings
|
||||||
|
|
||||||
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.15.1-3
|
||||||
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
* Sat Apr 18 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.1-2
|
||||||
|
- Fix broken install with missing files
|
||||||
|
- Test against installed version to catch above issue
|
||||||
|
- Add more test dependencies
|
||||||
|
|
||||||
|
* Wed Mar 25 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.1-1
|
||||||
|
- Update to latest version
|
||||||
|
|
||||||
|
* Fri Mar 06 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.0-2
|
||||||
|
- Backport fix for seaborn 0.10.0
|
||||||
|
|
||||||
|
* Sat Feb 08 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.0-1
|
||||||
|
- Update to latest version
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.3-3
|
||||||
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jul 21 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.12.3-1
|
||||||
|
- Update to latest version
|
||||||
|
|
||||||
|
* Sat Mar 16 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.12.0-1
|
||||||
|
- Initial package.
|
||||||
+39
-83
@@ -1,43 +1,38 @@
|
|||||||
%global srcname xarray
|
%global srcname xarray
|
||||||
%global data_commit 5fdb22b5613ba8176b9f6fa67be783d7810643eb
|
%global data_commit 7d8290e0be9d2a8f4b4381641f20a97db6eaea3d
|
||||||
|
|
||||||
%bcond_with docs
|
%bcond_with docs
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 0.16.2
|
Version: 2023.8.0
|
||||||
Release: 1%{?dist}
|
Release: %autorelease
|
||||||
Summary: N-D labeled arrays and datasets in Python
|
Summary: N-D labeled arrays and datasets in Python
|
||||||
|
|
||||||
License: ASL 2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/pydata/xarray
|
URL: https://github.com/pydata/xarray
|
||||||
Source0: %pypi_source
|
Source0: %pypi_source %{srcname}
|
||||||
# Data for examples only.
|
# Data for examples only.
|
||||||
Source1: https://github.com/pydata/xarray-data/archive/%{data_commit}/xarray-data-%{data_commit}.tar.gz
|
Source1: https://github.com/pydata/xarray-data/archive/%{data_commit}/xarray-data-%{data_commit}.tar.gz
|
||||||
Source2: https://github.com/mapbox/rasterio/raw/1.0.21/tests/data/RGB.byte.tif
|
|
||||||
# All Fedora specific.
|
# All Fedora specific.
|
||||||
Patch0001: 0001-DOC-Don-t-download-RGB.byte.tif-during-build.patch
|
Patch0001: 0001-DOC-Skip-examples-using-unpackaged-dependencies.patch
|
||||||
Patch0002: 0002-DOC-Skip-examples-using-unpackaged-dependencies.patch
|
Patch0002: 0002-DOC-Don-t-print-out-conda-pip-environment.patch
|
||||||
Patch0003: 0003-DOC-Don-t-print-out-conda-pip-environment.patch
|
# Fix tests with Matplotlib 3.8.0.
|
||||||
# We do not have new enough pint.
|
Patch0003: https://github.com/pydata/xarray/pull/8186.patch
|
||||||
Patch0004: 0004-Revert-un-xfail-the-pint-assert_allclose-and-assert_.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3dist(cftime) >= 1
|
BuildRequires: python3dist(bottleneck)
|
||||||
BuildRequires: python3-dask+array
|
BuildRequires: python3dist(cftime) >= 1.2
|
||||||
BuildRequires: python3-dask+dataframe
|
BuildRequires: python3dist(dask[array]) >= 2.30
|
||||||
BuildRequires: python3dist(netcdf4) >= 1.4
|
BuildRequires: python3dist(dask[dataframe]) >= 2.30
|
||||||
BuildRequires: python3dist(numpy) >= 1.15
|
BuildRequires: python3dist(netcdf4) >= 1.5
|
||||||
BuildRequires: python3dist(pandas) >= 0.25
|
BuildRequires: python3dist(pint) >= 0.16
|
||||||
BuildRequires: python3dist(pint)
|
|
||||||
BuildRequires: python3dist(pytest) >= 2.7.1
|
BuildRequires: python3dist(pytest) >= 2.7.1
|
||||||
BuildRequires: python3dist(pytest-xdist)
|
BuildRequires: python3dist(pytest-xdist)
|
||||||
BuildRequires: python3dist(rasterio) >= 1
|
BuildRequires: python3dist(rasterio) >= 1.1
|
||||||
BuildRequires: python3dist(seaborn)
|
BuildRequires: python3dist(seaborn) >= 0.11
|
||||||
BuildRequires: python3dist(setuptools) >= 41.2
|
BuildRequires: python3dist(zarr) >= 2.5
|
||||||
BuildRequires: python3dist(setuptools-scm)
|
|
||||||
BuildRequires: python3dist(zarr) >= 2.3
|
|
||||||
|
|
||||||
%global _description %{expand: \
|
%global _description %{expand: \
|
||||||
Xarray (formerly xray) is an open source project and Python package that
|
Xarray (formerly xray) is an open source project and Python package that
|
||||||
@@ -52,7 +47,7 @@ for advanced analytics and visualization with these data structures.
|
|||||||
|
|
||||||
Xarray was inspired by and borrows heavily from pandas, the popular data
|
Xarray was inspired by and borrows heavily from pandas, the popular data
|
||||||
analysis package focused on labelled tabular data. It is particularly
|
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 xarray’s
|
||||||
data model, and integrates tightly with dask for parallel computing.}
|
data model, and integrates tightly with dask for parallel computing.}
|
||||||
|
|
||||||
%description %{_description}
|
%description %{_description}
|
||||||
@@ -60,7 +55,6 @@ data model, and integrates tightly with dask for parallel computing.}
|
|||||||
|
|
||||||
%package -n python3-%{srcname}
|
%package -n python3-%{srcname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{srcname}}
|
|
||||||
|
|
||||||
%description -n python3-%{srcname} %{_description}
|
%description -n python3-%{srcname} %{_description}
|
||||||
|
|
||||||
@@ -74,13 +68,10 @@ BuildRequires: natural-earth-map-data-110m
|
|||||||
BuildRequires: natural-earth-map-data-10m
|
BuildRequires: natural-earth-map-data-10m
|
||||||
BuildRequires: python3-ipython-sphinx
|
BuildRequires: python3-ipython-sphinx
|
||||||
BuildRequires: python3dist(jupyter-client)
|
BuildRequires: python3dist(jupyter-client)
|
||||||
BuildRequires: python3dist(matplotlib)
|
BuildRequires: python3dist(matplotlib) >= 3.3
|
||||||
BuildRequires: python3dist(netcdf4)
|
|
||||||
BuildRequires: python3dist(rasterio)
|
|
||||||
BuildRequires: python3dist(sphinx)
|
BuildRequires: python3dist(sphinx)
|
||||||
BuildRequires: python3dist(sphinx-gallery)
|
BuildRequires: python3dist(sphinx-gallery)
|
||||||
BuildRequires: python3dist(sphinx-rtd-theme)
|
BuildRequires: python3dist(sphinx-rtd-theme)
|
||||||
BuildRequires: python3dist(zarr)
|
|
||||||
|
|
||||||
%description -n python-%{srcname}-doc
|
%description -n python-%{srcname}-doc
|
||||||
Documentation for xarray
|
Documentation for xarray
|
||||||
@@ -93,12 +84,15 @@ Documentation for xarray
|
|||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
# Provide example datasets for building docs.
|
# Provide example datasets for building docs.
|
||||||
tar xf %SOURCE1 --transform='s~^\(%{srcname}-data-%{data_commit}/\)~\1.xarray_tutorial_data/~'
|
tar xf %SOURCE1 --transform='s~^\(%{srcname}-data-%{data_commit}/\)~\1.xarray_tutorial_data/~'
|
||||||
cp -p %SOURCE2 ./doc/gallery/
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires -r
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
# generate html docs
|
# generate html docs
|
||||||
@@ -111,19 +105,26 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
|
%pyproject_save_files %{srcname}
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
rm -rf xarray
|
rm -rf xarray
|
||||||
%{pytest} -ra -n auto -m "not network" --pyargs 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
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-%{srcname}
|
%files -n python3-%{srcname} -f %{pyproject_files}
|
||||||
%license LICENSE licenses/DASK_LICENSE licenses/NUMPY_LICENSE licenses/PANDAS_LICENSE licenses/PYTHON_LICENSE licenses/SEABORN_LICENSE
|
%license LICENSE licenses/DASK_LICENSE licenses/NUMPY_LICENSE licenses/PANDAS_LICENSE licenses/PYTHON_LICENSE licenses/SEABORN_LICENSE
|
||||||
%doc README.rst
|
%doc README.md
|
||||||
%{python3_sitelib}/%{srcname}
|
|
||||||
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info
|
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
%files -n python-%{srcname}-doc
|
%files -n python-%{srcname}-doc
|
||||||
@@ -133,49 +134,4 @@ rm -rf xarray
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Dec 12 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.16.2-1
|
%autochangelog
|
||||||
- Update to latest version (#1902888)
|
|
||||||
|
|
||||||
* Sat Sep 26 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.16.1-1
|
|
||||||
- Update to latest version (#1880864)
|
|
||||||
|
|
||||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Jul 12 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.16.0-1
|
|
||||||
- Update to latest version
|
|
||||||
|
|
||||||
* Tue Jun 23 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.1-3
|
|
||||||
- Backport patch to fix tests catching too many warnings
|
|
||||||
|
|
||||||
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.15.1-3
|
|
||||||
- Rebuilt for Python 3.9
|
|
||||||
|
|
||||||
* Sat Apr 18 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.1-2
|
|
||||||
- Fix broken install with missing files
|
|
||||||
- Test against installed version to catch above issue
|
|
||||||
- Add more test dependencies
|
|
||||||
|
|
||||||
* Wed Mar 25 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.1-1
|
|
||||||
- Update to latest version
|
|
||||||
|
|
||||||
* Fri Mar 06 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.0-2
|
|
||||||
- Backport fix for seaborn 0.10.0
|
|
||||||
|
|
||||||
* Sat Feb 08 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.0-1
|
|
||||||
- Update to latest version
|
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.3-3
|
|
||||||
- Rebuilt for Python 3.8
|
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Jul 21 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.12.3-1
|
|
||||||
- Update to latest version
|
|
||||||
|
|
||||||
* Sat Mar 16 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.12.0-1
|
|
||||||
- Initial package.
|
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
SHA512 (xarray-0.16.2.tar.gz) = f6cd3eee2012e3b544874388c4824e911ce5d213cd393bf01b10deb9742a1168f41629e4f1e49220228771cac920980eaa98a599a6d62c383dd3da7b3bfe0dd8
|
SHA512 (xarray-2023.8.0.tar.gz) = 1d712e9fbf266906ac35c199eead77cec76ba5b4b4462140bef2fffd227a52d2cba9670a042cb669b0567320e9308bf81fe4e84c1cfcff234ad2332d72e895a3
|
||||||
SHA512 (xarray-data-5fdb22b5613ba8176b9f6fa67be783d7810643eb.tar.gz) = a1ed7c14e9fe6a0e4327b374b1b0ecd93472cd8308b3e2bbc078172576b8f31cd27c11da4b1c557e9b1615a411beaf21db83de755ece342343a4db2773ce6d29
|
SHA512 (xarray-data-7d8290e0be9d2a8f4b4381641f20a97db6eaea3d.tar.gz) = 3734ad5649b9ba23e8fe52ac1fc34694dcb3c761a1817e520726a83d31e725e2448aa0109ad7ad385572ae7d6a285bf1407d104f87227127a6a51d73b797a952
|
||||||
SHA512 (RGB.byte.tif) = 34aa1b196f6c5880530d42ec8a25193bc79db803a8427adc9b115373d222b9f4318a04f06c8b37118df7e09d96b9c470ecec543c604af18861f11b786ed6fbfd
|
|
||||||
|
|||||||
Reference in New Issue
Block a user