[Git][debian-gis-team/xarray-sentinel][master] New 0003-xfail-on-32bit-archs.patch
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Wed Nov 11 06:32:51 GMT 2026
Antonio Valentino pushed to branch master at Debian GIS Project / xarray-sentinel
Commits:
818f53d9 by Antonio Valentino at 2026-11-11T06:31:51+00:00
New 0003-xfail-on-32bit-archs.patch
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/0003-xfail-on-32bit-archs.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+xarray-sentinel (0.9.7-2) UNRELEASED; urgency=medium
+
+ * debian/patch:
+ - New 0003-xfail-on-32bit-archs.patch.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it> Wed, 11 Nov 2026 06:31:26 +0000
+
xarray-sentinel (0.9.7-1) unstable; urgency=medium
* New upstream release.
=====================================
debian/patches/0003-xfail-on-32bit-archs.patch
=====================================
@@ -0,0 +1,65 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Wed, 11 Nov 2026 06:28:37 +0000
+Subject: xfail-on-32bit-archs
+
+Some of the tests xfail on 32 bit architectures because
+the default int type is np.int32 instead of the expected
+np.int64.
+---
+ tests/test_15_eopf_sentinel1.py | 5 +++++
+ tests/test_30_eopf_product.py | 4 ++++
+ 2 files changed, 9 insertions(+)
+
+diff --git a/tests/test_15_eopf_sentinel1.py b/tests/test_15_eopf_sentinel1.py
+index 79dcd37..c2dfbdb 100644
+--- a/tests/test_15_eopf_sentinel1.py
++++ b/tests/test_15_eopf_sentinel1.py
+@@ -1,10 +1,14 @@
++import sys
+ import pathlib
+
+ import numpy as np
+ import xarray as xr
++import pytest
+
+ from xarray_sentinel import eopf_sentinel1, esa_safe
+
++IS_32_BIT = (sys.maxsize == 0x7fffffff)
++
+ DATA_FOLDER = pathlib.Path(__file__).parent / "data"
+
+ SLC_IW1_VV_annotation = (
+@@ -96,6 +100,7 @@ def test_open_doppler_centroid() -> None:
+ assert res.data_dc_rms_error_above_threshold.dtype == bool
+
+
++ at pytest.mark.xfail(IS_32_BIT, reason="int32 instead of int64 on 32bit architectures.")
+ def test_open_coordinate_conversion() -> None:
+ # dims and dtypes from the CPM 3.0 S01SIWGRD mapping
+ expected = {
+diff --git a/tests/test_30_eopf_product.py b/tests/test_30_eopf_product.py
+index a2d1dab..df62d9e 100644
+--- a/tests/test_30_eopf_product.py
++++ b/tests/test_30_eopf_product.py
+@@ -1,3 +1,4 @@
++import sys
+ import json
+ import pathlib
+ import shutil
+@@ -10,6 +11,8 @@ import xarray as xr
+
+ from xarray_sentinel import eopf_product, sentinel1
+
++IS_32_BIT = (sys.maxsize == 0x7fffffff)
++
+ DATA_FOLDER = pathlib.Path(__file__).parent / "data"
+
+ SLC_IW = (
+@@ -312,6 +315,7 @@ def test_open_datatree_groups(
+ assert slc_iw_node_structure.keys() == EXPECTED_SLC_IW_STRUCTURE.keys()
+
+
++ at pytest.mark.xfail(IS_32_BIT, reason="int32 instead of int64 on 32bit architectures.")
+ @pytest.mark.parametrize("group", sorted(EXPECTED_SLC_IW_STRUCTURE))
+ def test_open_datatree_group_structure(
+ slc_iw_node_structure: dict[str, dict[str, list[Any]]], group: str
=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
0001-test_get_fs_path.patch
0002-no-network.patch
+0003-xfail-on-32bit-archs.patch
View it on GitLab: https://salsa.debian.org/debian-gis-team/xarray-sentinel/-/commit/818f53d984ed345c2deacfb5c3601b284d94626b
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/xarray-sentinel/-/commit/818f53d984ed345c2deacfb5c3601b284d94626b
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20261111/88ae046a/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list