public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-rasterio] f43: Fix compatibility with latest GDAL
Date: Tue, 20 Oct 2026 22:54:48 GMT [thread overview]
Message-ID: <179253688885.1.5418072202397218211.rpms-python-rasterio-838b298d8951@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-rasterio
Branch : f43
Commit : 838b298d895128cdbe337f13579306f12d38df08
Author : Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date : 2026-04-28T21:47:59-04:00
Stats : +267/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-rasterio/c/838b298d895128cdbe337f13579306f12d38df08?branch=f43
Log:
Fix compatibility with latest GDAL
---
diff --git a/3529.patch b/3529.patch
new file mode 100644
index 0000000..8dbe6a1
--- /dev/null
+++ b/3529.patch
@@ -0,0 +1,265 @@
+From 23ccb046a412a72dd6ee56904adffc48ba27881f Mon Sep 17 00:00:00 2001
+From: Sean Gillies <sean.gillies@tiledb.com>
+Date: Fri, 27 Feb 2026 08:53:28 -0700
+Subject: [PATCH 1/4] Mark six warp tests as xfail
+
+---
+ Makefile | 2 +-
+ tests/test_warp.py | 6 ++++++
+ 2 files changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index a3c8e417e..c5d8c99b7 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,5 @@
+ PYTHON_VERSION ?= 3.12
+-GDAL ?= ubuntu-small-3.8.5
++GDAL ?= ubuntu-small-3.12.2
+ all: deps clean install test
+
+ .PHONY: docs
+diff --git a/tests/test_warp.py b/tests/test_warp.py
+index f02cfe5eb..f827e14a3 100644
+--- a/tests/test_warp.py
++++ b/tests/test_warp.py
+@@ -1322,6 +1322,7 @@ def test_reproject_resampling(path_rgb_byte_tif, method):
+ assert np.count_nonzero(out) in expected[method]
+
+
++@pytest.mark.xfail(reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
+ @pytest.mark.parametrize(
+ "test3d,count_nonzero",
+ [
+@@ -1387,6 +1388,7 @@ def dtype(self):
+ assert np.count_nonzero(out.data[out.data != 99]) == count_nonzero
+
+
++@pytest.mark.xfail(reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
+ @pytest.mark.parametrize(
+ "test3d,count_nonzero",
+ [
+@@ -1495,6 +1497,7 @@ def test_reproject_to_masked_output(path_rgb_byte_tif):
+ assert isinstance(out, np.ma.MaskedArray)
+
+
++@pytest.mark.xfail(reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
+ @pytest.mark.parametrize(
+ "test3d,count_nonzero",
+ [
+@@ -2412,6 +2415,7 @@ def test_coordinate_pipeline(tmp_path):
+ assert dst.checksum(1) == 4705
+
+
++@pytest.mark.xfail(reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
+ def test_geoloc_warp_dataset(data, tmp_path):
+ """Warp a dataset using external geolocation arrays."""
+ filename = str(data.join("RGB.byte.tif"))
+@@ -2456,6 +2460,7 @@ def test_geoloc_warp_dataset(data, tmp_path):
+ assert np.count_nonzero(out) in [464910]
+
+
++@pytest.mark.xfail(reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
+ # Before GDAL 3.5.2 geoloc array files aren't recognized and this error
+ # would be seen from the following tests:
+ #
+@@ -2492,6 +2497,7 @@ def test_geoloc_warp_array(path_rgb_byte_tif):
+ assert np.count_nonzero(output[0]) in [464910]
+
+
++@pytest.mark.xfail(reason="Warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
+ def test_geoloc_warp_array_subsampled(path_rgb_byte_tif):
+ """Warp an array using subsampled external geolocation arrays."""
+ with rasterio.open(path_rgb_byte_tif) as src:
+
+From 26634bf622be7b27b0efa518363c67f0c84546f0 Mon Sep 17 00:00:00 2001
+From: Sean Gillies <sean.gillies@tiledb.com>
+Date: Fri, 27 Feb 2026 09:05:09 -0700
+Subject: [PATCH 2/4] Add more marks
+
+---
+ tests/test_rio_warp.py | 1 +
+ tests/test_warp.py | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/tests/test_rio_warp.py b/tests/test_rio_warp.py
+index 317f22010..0418e0fff 100644
+--- a/tests/test_rio_warp.py
++++ b/tests/test_rio_warp.py
+@@ -590,6 +590,7 @@ def test_unrotate(runner, tmp_path):
+ assert src.transform.d == 0.0
+
+
++@pytest.mark.xfail(reason="Warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
+ @pytest.mark.parametrize(
+ "wotopt", ["--to", "--transformer-option", "--wo", "--warper-option"]
+ )
+diff --git a/tests/test_warp.py b/tests/test_warp.py
+index f827e14a3..4c5b4688e 100644
+--- a/tests/test_warp.py
++++ b/tests/test_warp.py
+@@ -2380,6 +2380,7 @@ def test_rpcs_non_epsg4326():
+ )
+
+
++@pytest.mark.xfail(reason="Warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
+ def test_coordinate_pipeline(tmp_path):
+ """Transformer COORDINATE_OPERATION option is activated."""
+ pipeline = "proj=pipeline step inv proj=utm zone=11 ellps=clrk66 step proj=unitconvert xy_in=rad xy_out=deg step proj=axisswap order=2,1"
+
+From 468230523a3f81280c51e8e52bc0cc8db2317402 Mon Sep 17 00:00:00 2001
+From: Sean Gillies <sean.gillies@tiledb.com>
+Date: Tue, 3 Mar 2026 17:52:43 -0700
+Subject: [PATCH 3/4] xfail for gdal >= 3.12.2
+
+---
+ tests/test_rio_warp.py | 11 ++++++++++-
+ tests/test_warp.py | 42 +++++++++++++++++++++++++++++++++++-------
+ 2 files changed, 45 insertions(+), 8 deletions(-)
+
+diff --git a/tests/test_rio_warp.py b/tests/test_rio_warp.py
+index 0418e0fff..7f488aef3 100644
+--- a/tests/test_rio_warp.py
++++ b/tests/test_rio_warp.py
+@@ -12,6 +12,11 @@
+ from rasterio.rio import warp
+ from rasterio.rio.main import main_group
+
++# Make a gdal version tuple.
++version_name = rasterio.gdal_version()
++version_name = re.split(r"[a-z]", version_name)[0]
++gdal_version_info = tuple(int(x) for x in version_name.split("."))
++
+
+ def test_dst_crs_error(runner, tmpdir):
+ """Invalid JSON is a bad parameter."""
+@@ -590,7 +595,11 @@ def test_unrotate(runner, tmp_path):
+ assert src.transform.d == 0.0
+
+
+-@pytest.mark.xfail(reason="Warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
++@pytest.mark.xfail(
++ gdal_version_info >= (3, 12, 2),
++ reason="Warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.",
++ raises=AssertionError,
++)
+ @pytest.mark.parametrize(
+ "wotopt", ["--to", "--transformer-option", "--wo", "--warper-option"]
+ )
+diff --git a/tests/test_warp.py b/tests/test_warp.py
+index 4c5b4688e..3dcc97d75 100644
+--- a/tests/test_warp.py
++++ b/tests/test_warp.py
+@@ -1322,7 +1322,11 @@ def test_reproject_resampling(path_rgb_byte_tif, method):
+ assert np.count_nonzero(out) in expected[method]
+
+
+-@pytest.mark.xfail(reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
++@pytest.mark.xfail(
++ gdal_version_info >= (3, 12, 2),
++ reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.",
++ raises=AssertionError,
++)
+ @pytest.mark.parametrize(
+ "test3d,count_nonzero",
+ [
+@@ -1388,7 +1392,11 @@ def dtype(self):
+ assert np.count_nonzero(out.data[out.data != 99]) == count_nonzero
+
+
+-@pytest.mark.xfail(reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
++@pytest.mark.xfail(
++ gdal_version_info >= (3, 12, 2),
++ reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.",
++ raises=AssertionError,
++)
+ @pytest.mark.parametrize(
+ "test3d,count_nonzero",
+ [
+@@ -1497,7 +1505,11 @@ def test_reproject_to_masked_output(path_rgb_byte_tif):
+ assert isinstance(out, np.ma.MaskedArray)
+
+
+-@pytest.mark.xfail(reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
++@pytest.mark.xfail(
++ gdal_version_info >= (3, 12, 2),
++ reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.",
++ raises=AssertionError,
++)
+ @pytest.mark.parametrize(
+ "test3d,count_nonzero",
+ [
+@@ -2380,7 +2392,11 @@ def test_rpcs_non_epsg4326():
+ )
+
+
+-@pytest.mark.xfail(reason="Warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
++@pytest.mark.xfail(
++ gdal_version_info >= (3, 12, 2),
++ reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.",
++ raises=AssertionError,
++)
+ def test_coordinate_pipeline(tmp_path):
+ """Transformer COORDINATE_OPERATION option is activated."""
+ pipeline = "proj=pipeline step inv proj=utm zone=11 ellps=clrk66 step proj=unitconvert xy_in=rad xy_out=deg step proj=axisswap order=2,1"
+@@ -2416,7 +2432,11 @@ def test_coordinate_pipeline(tmp_path):
+ assert dst.checksum(1) == 4705
+
+
+-@pytest.mark.xfail(reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
++@pytest.mark.xfail(
++ gdal_version_info >= (3, 12, 2),
++ reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.",
++ raises=AssertionError,
++)
+ def test_geoloc_warp_dataset(data, tmp_path):
+ """Warp a dataset using external geolocation arrays."""
+ filename = str(data.join("RGB.byte.tif"))
+@@ -2461,7 +2481,11 @@ def test_geoloc_warp_dataset(data, tmp_path):
+ assert np.count_nonzero(out) in [464910]
+
+
+-@pytest.mark.xfail(reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
++@pytest.mark.xfail(
++ gdal_version_info >= (3, 12, 2),
++ reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.",
++ raises=AssertionError,
++)
+ # Before GDAL 3.5.2 geoloc array files aren't recognized and this error
+ # would be seen from the following tests:
+ #
+@@ -2498,7 +2522,11 @@ def test_geoloc_warp_array(path_rgb_byte_tif):
+ assert np.count_nonzero(output[0]) in [464910]
+
+
+-@pytest.mark.xfail(reason="Warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.", raises=AssertionError)
++@pytest.mark.xfail(
++ gdal_version_info >= (3, 12, 2),
++ reason="warper implementation has changed. See https://github.com/rasterio/rasterio/issues/3517.",
++ raises=AssertionError,
++)
+ def test_geoloc_warp_array_subsampled(path_rgb_byte_tif):
+ """Warp an array using subsampled external geolocation arrays."""
+ with rasterio.open(path_rgb_byte_tif) as src:
+
+From d26b08143bbdc83d92d4c30852879d3a9ec6d94c Mon Sep 17 00:00:00 2001
+From: Sean Gillies <sean.gillies@tiledb.com>
+Date: Tue, 3 Mar 2026 19:28:02 -0700
+Subject: [PATCH 4/4] Add missing re import
+
+---
+ tests/test_rio_warp.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/test_rio_warp.py b/tests/test_rio_warp.py
+index 7f488aef3..135d8a000 100644
+--- a/tests/test_rio_warp.py
++++ b/tests/test_rio_warp.py
+@@ -2,6 +2,7 @@
+
+
+ import os
++import re
+
+ import affine
+ import numpy as np
diff --git a/python-rasterio.spec b/python-rasterio.spec
index f301080..b0664dd 100644
--- a/python-rasterio.spec
+++ b/python-rasterio.spec
@@ -11,6 +11,8 @@ URL: https://github.com/rasterio/rasterio
Source0: https://github.com/rasterio/rasterio/archive/%{version}/%{srcname}-%{version}.tar.gz
# Fedora-specific.
Patch: 0001-Loosen-up-build-requirements.patch
+# Fix compatibility with latest GDAL.
+Patch: https://github.com/rasterio/rasterio/pull/3529.patch
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
reply other threads:[~2026-10-20 22:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179253688885.1.5418072202397218211.rpms-python-rasterio-838b298d8951@fedoraproject.org \
--to=quantum.analyst@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox