diff --git a/0001-DOC-Skip-examples-using-unpackaged-dependencies.patch b/0001-DOC-Skip-examples-using-unpackaged-dependencies.patch index 7b3cd7d..9e9934d 100644 --- a/0001-DOC-Skip-examples-using-unpackaged-dependencies.patch +++ b/0001-DOC-Skip-examples-using-unpackaged-dependencies.patch @@ -1,7 +1,7 @@ -From f2b1952202db32b956566648dec4cfd302f54316 Mon Sep 17 00:00:00 2001 +From 955e5695e632ec368e25ca2d4afdb7d669a17bfe Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 15 Mar 2019 22:48:25 -0400 -Subject: [PATCH 1/2] DOC: Skip examples using unpackaged dependencies. +Subject: [PATCH 1/3] DOC: Skip examples using unpackaged dependencies. Signed-off-by: Elliott Sales de Andrade --- @@ -9,10 +9,10 @@ Signed-off-by: Elliott Sales de Andrade 1 file changed, 2 insertions(+) diff --git a/doc/user-guide/io.rst b/doc/user-guide/io.rst -index dc495b9f..e03080a1 100644 +index 85c47334..2a03cb4e 100644 --- a/doc/user-guide/io.rst +++ b/doc/user-guide/io.rst -@@ -921,6 +921,7 @@ installed, xarray can convert a ``DataArray`` into a ``Cube`` using +@@ -1072,6 +1072,7 @@ installed, xarray can convert a ``DataArray`` into a ``Cube`` using :py:meth:`DataArray.to_iris`: .. ipython:: python @@ -20,7 +20,7 @@ index dc495b9f..e03080a1 100644 da = xr.DataArray( np.random.rand(4, 5), -@@ -935,6 +936,7 @@ Conversely, we can create a new ``DataArray`` object from a ``Cube`` using +@@ -1086,6 +1087,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 dc495b9f..e03080a1 100644 da_cube = xr.DataArray.from_iris(cube) da_cube -- -2.39.2 +2.45.2 diff --git a/0002-DOC-Don-t-print-out-conda-pip-environment.patch b/0002-DOC-Don-t-print-out-conda-pip-environment.patch index a89c280..1be51ff 100644 --- a/0002-DOC-Don-t-print-out-conda-pip-environment.patch +++ b/0002-DOC-Don-t-print-out-conda-pip-environment.patch @@ -1,7 +1,7 @@ -From f85d7fd7257f3c109987022e35f81da24a32bdbf Mon Sep 17 00:00:00 2001 +From 1b0312ce5e355ba1e9ecb6838817a9ba1154bf8c Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 16 Mar 2019 02:59:15 -0400 -Subject: [PATCH 2/2] DOC: Don't print out conda/pip environment. +Subject: [PATCH 2/3] DOC: Don't print out conda/pip environment. Signed-off-by: Elliott Sales de Andrade --- @@ -9,7 +9,7 @@ Signed-off-by: Elliott Sales de Andrade 1 file changed, 8 deletions(-) diff --git a/doc/conf.py b/doc/conf.py -index eb861004..faed9753 100644 +index 4f1fc675..3415bcd0 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -16,7 +16,6 @@ import datetime @@ -35,5 +35,5 @@ index eb861004..faed9753 100644 with suppress(ImportError): -- -2.39.2 +2.45.2 diff --git a/0003-Fix-tests-on-big-endian-systems.patch b/0003-Fix-tests-on-big-endian-systems.patch new file mode 100644 index 0000000..16d5e7e --- /dev/null +++ b/0003-Fix-tests-on-big-endian-systems.patch @@ -0,0 +1,78 @@ +From b2594026663f5d61b5a3e01e790c2a1c8e3e72a8 Mon Sep 17 00:00:00 2001 +From: Elliott Sales de Andrade +Date: Mon, 19 Aug 2024 01:16:05 -0400 +Subject: [PATCH 3/3] Fix tests on big-endian systems + +There is nothing in the data created in these tests that requires them +to be little endian, so the dtype comparison should be for native byte +order. + +Signed-off-by: Elliott Sales de Andrade +--- + xarray/tests/test_backends.py | 6 +++--- + xarray/tests/test_coding_times.py | 4 ++-- + xarray/tests/test_dask.py | 2 +- + 3 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py +index 4fa87364..0ae3062c 100644 +--- a/xarray/tests/test_backends.py ++++ b/xarray/tests/test_backends.py +@@ -872,7 +872,7 @@ class CFEncodedBase(DatasetIOBase): + if actual["a"].dtype.metadata is not None: + assert check_vlen_dtype(actual["a"].dtype) is str + else: +- assert actual["a"].dtype == np.dtype("