Source: python-rioxarray
Version: 0.18.1-1
Severity: serious
Tags: ftbfs upstream patch
Justification: makes the package in question unusable or mostly so

Dear Maintainer,

Your package FTBFS with rasterio 1.4.3:

 =================================== FAILURES 
===================================
 __________________________ test_rasterio_environment 
___________________________
 
     def test_rasterio_environment():
         with create_tmp_geotiff() as (tmp_file, expected):
             # Should fail with error since suffix not allowed
 >           with pytest.raises(Exception):
 E           Failed: DID NOT RAISE <class 'Exception'>
 
 test/integration/test_integration__io.py:869: Failed

This also causes autopkgtest failures:

 https://ci.debian.net/packages/p/python-rioxarray/testing/amd64/55008207/

The attached patch resolves the issues by using xfail for the test in question.

Kind Regards,

Bas
diff -Nru python-rioxarray-0.18.1/debian/patches/0002-rasterio-1.4.3.patch 
python-rioxarray-0.18.1/debian/patches/0002-rasterio-1.4.3.patch
--- python-rioxarray-0.18.1/debian/patches/0002-rasterio-1.4.3.patch    
1970-01-01 01:00:00.000000000 +0100
+++ python-rioxarray-0.18.1/debian/patches/0002-rasterio-1.4.3.patch    
2024-12-03 16:05:21.000000000 +0100
@@ -0,0 +1,14 @@
+Description: Fix FTBFS with rasterio 1.4.3.
+Author: Bas Couwenberg <sebas...@debian.org>
+Forwarded: not-needed
+
+--- a/test/integration/test_integration__io.py
++++ b/test/integration/test_integration__io.py
+@@ -863,6 +863,7 @@ def test_http_url():
+         assert isinstance(actual.data, dask.array.Array)
+ 
+ 
++@pytest.mark.xfail(strict=False, reason="Fails with rasterio 1.4.3")
+ def test_rasterio_environment():
+     with create_tmp_geotiff() as (tmp_file, expected):
+         # Should fail with error since suffix not allowed
diff -Nru python-rioxarray-0.18.1/debian/patches/series 
python-rioxarray-0.18.1/debian/patches/series
--- python-rioxarray-0.18.1/debian/patches/series       2024-11-09 
17:28:31.000000000 +0100
+++ python-rioxarray-0.18.1/debian/patches/series       2024-12-03 
16:05:21.000000000 +0100
@@ -1 +1,2 @@
 0001-rasterio-1.4.patch
+0002-rasterio-1.4.3.patch

Reply via email to