Source: pyogrio
Version: 0.12.1+ds-1
Severity: important
Tags: upstream ftbfs patch
Usertags: gdal-3.13

Dear Maintainer,

Your package FTBFS with GDAL 3.13.0 due to test failure:

 E       assert '{ "col": null }' in '{\n"type": "FeatureCollection",\n"name": 
"test",\n"crs": { "type": "name", "properties": { "name": 
"urn:ogc:def:crs:OGC:1.3:CRS84" } },\n"features": 
[\n{"type":"Feature","properties":{"col":1.5},"geometry":{"type":"Point","coordinates":[0.0,0.0]}},\n{"type":"Feature","properties":{"col":null},"geometry":{"type":"Point","coordinates":[0.0,0.0]}}\n]\n}\n'
 .
 pyogrio/tests/test_raw_io.py:1057: AssertionError

The attached patch fixes the issue.

Kind Regards,

Bas
diff -Nru pyogrio-0.12.1+ds/debian/patches/gdal-3.13.patch 
pyogrio-0.12.1+ds/debian/patches/gdal-3.13.patch
--- pyogrio-0.12.1+ds/debian/patches/gdal-3.13.patch    1970-01-01 
01:00:00.000000000 +0100
+++ pyogrio-0.12.1+ds/debian/patches/gdal-3.13.patch    2026-04-16 
21:32:18.000000000 +0200
@@ -0,0 +1,25 @@
+Description: Fix FTBFS with GDAL 3.13.0.
+ E       assert '{ "col": null }' in '{\n"type": "FeatureCollection",\n"name": 
"test",\n"crs": { "type": "name", "properties": { "name": 
"urn:ogc:def:crs:OGC:1.3:CRS84" } },\n"features": 
[\n{"type":"Feature","properties":{"col":1.5},"geometry":{"type":"Point","coordinates":[0.0,0.0]}},\n{"type":"Feature","properties":{"col":null},"geometry":{"type":"Point","coordinates":[0.0,0.0]}}\n]\n}\n'
+ .
+ pyogrio/tests/test_raw_io.py:1057: AssertionError
+Author: Bas Couwenberg <[email protected]>
+
+--- a/pyogrio/tests/test_raw_io.py
++++ b/pyogrio/tests/test_raw_io.py
+@@ -1038,6 +1038,7 @@ def test_read_write_null_geometry(tmp_pa
+     assert np.array_equal(result_fields[0], field_data[0])
+ 
+ 
[email protected](strict=False, reason="Fails with GDAL 3.13")
+ @pytest.mark.parametrize("dtype", ["float32", "float64"])
+ def test_write_float_nan_null(tmp_path, dtype):
+     # Point(0, 0)
+@@ -1054,7 +1055,7 @@ def test_write_float_nan_null(tmp_path,
+     write(filename, geometry, field_data, fields, **meta)
+     with open(filename) as f:
+         content = f.read()
+-    assert '{ "col": null }' in content
++    assert '{ "col": null }' in content or '{ "col":null }' in content
+ 
+     # set to False
+     # by default, GDAL will skip the property for GeoJSON if the value is NaN
diff -Nru pyogrio-0.12.1+ds/debian/patches/series 
pyogrio-0.12.1+ds/debian/patches/series
--- pyogrio-0.12.1+ds/debian/patches/series     1970-01-01 01:00:00.000000000 
+0100
+++ pyogrio-0.12.1+ds/debian/patches/series     2026-04-16 21:32:18.000000000 
+0200
@@ -0,0 +1 @@
+gdal-3.13.patch
_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to