Antonio Valentino pushed to branch master at Debian GIS Project / glymur
Commits: 76c9eeab by Antonio Valentino at 2024-05-15T05:37:56+00:00 New 0001-Fix-broken-test.patch - - - - - 7aa6a22a by Antonio Valentino at 2024-05-15T05:38:20+00:00 Set distribution to unstable - - - - - 3 changed files: - debian/changelog - + debian/patches/0001-Fix-broken-test.patch - + debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,11 @@ +glymur (0.13.2-2) unstable; urgency=medium + + * debian/patches: + - New 0001-Fix-broken-test.patch. + Fixes a testing issue on BE architectures. + + -- Antonio Valentino <[email protected]> Wed, 15 May 2024 05:38:04 +0000 + glymur (0.13.2-1) unstable; urgency=medium * New upstream release. ===================================== debian/patches/0001-Fix-broken-test.patch ===================================== @@ -0,0 +1,35 @@ +From: Antonio Valentino <[email protected]> +Date: Wed, 15 May 2024 05:35:48 +0000 +Subject: Fix broken test + +Anytime the TIFF RGBA interface is involved, the endianness must be +taken into account. + +Origin: https://github.com/quintusdias/glymur/commit/a91e861fd477b595c32b495902c4caba30702765 +Forwarded: https://github.com/quintusdias/glymur/issues/654 +--- + tests/test_libtiff.py | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/tests/test_libtiff.py b/tests/test_libtiff.py +index ac4b561..b133a08 100644 +--- a/tests/test_libtiff.py ++++ b/tests/test_libtiff.py +@@ -1,6 +1,7 @@ + # standard library imports + import importlib.resources as ir + import platform ++import sys + import unittest + from unittest.mock import patch + import warnings +@@ -119,6 +120,9 @@ class TestSuite(fixtures.TestCommon): + actual = libtiff.readRGBAImageOriented(fp) + libtiff.close(fp) + ++ # Adjust for big-endian if necessary ++ actual = np.flip(actual, 2) if sys.byteorder == 'big' else actual ++ + error = fixtures.skimage.metrics.mean_squared_error( + actual[:, :, :3], expected + ) ===================================== debian/patches/series ===================================== @@ -0,0 +1 @@ +0001-Fix-broken-test.patch View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/compare/fdf61ac1c380742a95a4af0745c83d30025a3330...7aa6a22aefc2dd8a845a56bf6fc6cb99bb8873c7 -- View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/compare/fdf61ac1c380742a95a4af0745c83d30025a3330...7aa6a22aefc2dd8a845a56bf6fc6cb99bb8873c7 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ Pkg-grass-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel
