public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-rasterio] f44: Update to 1.5.1 upstream release
@ 2026-08-08  7:24 Packit
  0 siblings, 0 replies; only message in thread
From: Packit @ 2026-08-08  7:24 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-rasterio
            Branch : f44
            Commit : 478d310d6165adef1b810d661c91ed7a000b5465
            Author : Packit <hello@packit.dev>
            Date   : 2026-08-08T01:32:06-04:00
            Stats  : +7/-303 in 6 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-rasterio/c/478d310d6165adef1b810d661c91ed7a000b5465?branch=f44

            Log:
            Update to 1.5.1 upstream release

- Resolves: rhbz#2512726

Commit authored by Packit automation (https://packit.dev/)

---
diff --git a/.gitignore b/.gitignore
index ad033ab..ca3a8b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -47,3 +47,4 @@
 /rasterio-1.4.4rc1.tar.gz
 /rasterio-1.4.4.tar.gz
 /rasterio-1.5.0.tar.gz
+/rasterio-1.5.1.tar.gz

diff --git a/0002-TST-Always-skip-test_memfile_thread_safe_option.patch b/0002-TST-Always-skip-test_memfile_thread_safe_option.patch
deleted file mode 100644
index c82e8ed..0000000
--- a/0002-TST-Always-skip-test_memfile_thread_safe_option.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 13f7db202b32970e7214a64b7c9a082ab808790f Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
-Date: Tue, 9 Jun 2026 02:45:26 -0400
-Subject: [PATCH 2/2] TST: Always skip test_memfile_thread_safe_option
-
-Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
----
- tests/test_memoryfile.py | 5 +----
- 1 file changed, 1 insertion(+), 4 deletions(-)
-
-diff --git a/tests/test_memoryfile.py b/tests/test_memoryfile.py
-index c3630ce2..d38107b0 100644
---- a/tests/test_memoryfile.py
-+++ b/tests/test_memoryfile.py
-@@ -261,10 +261,7 @@ def test_file_object_read_variant(rgb_file_bytes):
-         assert src.read().shape == (3, 718, 791)
- 
- 
--@pytest.mark.skipif(
--    platform.system() in ["Windows", "Darwin"],
--    reason="https://github.com/rasterio/rasterio/issues/3499",
--)
-+@pytest.mark.skipif(True, reason="https://github.com/rasterio/rasterio/issues/3499")
- def test_memfile_thread_safe_option(rgb_file_object):
-     with (
-         pytest.raises(rasterio.errors.GDALOptionNotImplementedError) if not _GDAL_AT_LEAST_3_10 else nullcontext(),
--- 
-2.54.0
-

diff --git a/3529.patch b/3529.patch
deleted file mode 100644
index 8dbe6a1..0000000
--- a/3529.patch
+++ /dev/null
@@ -1,265 +0,0 @@
-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/README.packit b/README.packit
index 9bb65f0..ef5aa9d 100644
--- a/README.packit
+++ b/README.packit
@@ -1,3 +1,3 @@
 This repository is maintained by packit.
 https://packit.dev/
-The file was generated using packit 1.13.0.post1.dev2+g84134016c.
+The file was generated using packit 1.16.2.post1.dev6+g30936cda7.

diff --git a/python-rasterio.spec b/python-rasterio.spec
index 51d56c0..48eeb39 100644
--- a/python-rasterio.spec
+++ b/python-rasterio.spec
@@ -1,20 +1,16 @@
 %global srcname rasterio
 
 Name:           python-%{srcname}
-Version:        1.5.0
+Version:        1.5.1
 Release:        %autorelease
 Summary:        Fast and direct raster I/O for use with Numpy and SciPy
 
 License:        BSD-3-Clause
 URL:            https://github.com/rasterio/rasterio
 # PyPI tarball doesn't include test data.
-Source0:        https://github.com/rasterio/rasterio/archive/%{version}/%{srcname}-%{version}.tar.gz
+Source:         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
-# Skip a test that crashes: https://github.com/rasterio/rasterio/issues/3499
-Patch:          0002-TST-Always-skip-test_memfile_thread_safe_option.patch
 
 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
 ExcludeArch: %{ix86}
@@ -23,8 +19,9 @@ BuildRequires:  gcc-c++
 BuildRequires:  gdal >= 3.8
 BuildRequires:  gdal-devel >= 3.8
 
-# This is licensed as BSD-3-Clause, same as rasterio
+# These are licensed as BSD-3-Clause, same as rasterio.
 Provides: bundled(python3dist(click-plugins)) = 2
+Provides: bundled(python3dist(cligj)) = 2
 
 %global _description %{expand:
 Rasterio reads and writes geospatial raster data. Geographic information

diff --git a/sources b/sources
index 0fb465c..c84e210 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (rasterio-1.5.0.tar.gz) = a3fcf0b34133cbbab07d00bafb2047a5cd99e5ca84601f79249afc79abd97f9505a9832d4b535e57ba7d1131e283872ffe85757051e73d562734e44b8d215129
+SHA512 (rasterio-1.5.1.tar.gz) = b5dee2765da54ea557dd5971a89c4a500a809a935b6d243268a98824efe1f8073b62bf8faa843673fa871baf7d6c5d5efe8c40c686f36da04ac8bdee1121dbd5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-08  7:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-08  7:24 [rpms/python-rasterio] f44: Update to 1.5.1 upstream release Packit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox