[Git][debian-gis-team/pyresample][master] Add patch to fix FTBFS with PROJ 9.1.1. (closes: #1025612)

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Wed Dec 7 14:43:36 GMT 2022



Bas Couwenberg pushed to branch master at Debian GIS Project / pyresample


Commits:
c5cc909d by Bas Couwenberg at 2022-12-07T15:34:12+01:00
Add patch to fix FTBFS with PROJ 9.1.1. (closes: #1025612)

- - - - -


3 changed files:

- debian/changelog
- debian/patches/series
- + debian/patches/test_area_def_geocentric_resolution.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+pyresample (1.26.0-5) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Add patch to fix FTBFS with PROJ 9.1.1.
+    (closes: #1025612)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Wed, 07 Dec 2022 15:33:54 +0100
+
 pyresample (1.26.0-4) unstable; urgency=medium
 
   * Disable tests involving legacy_dask_ewa.


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@
 0002-Skip-test-on-deprecated-basemap.patch
 0003-Fix-mathjax-path.patch
 0004-Versioneer-path.patch
+test_area_def_geocentric_resolution.patch


=====================================
debian/patches/test_area_def_geocentric_resolution.patch
=====================================
@@ -0,0 +1,34 @@
+Description: Tune tolerance to fix test failures with PROJ 9.1.1.
+Author: Bas Couwenberg <sebastic at debian.org>
+Bug: https://github.com/pytroll/pyresample/issues/484
+Bug-Debian: https://bugs.debian.org/1025612
+
+--- a/pyresample/test/test_geometry.py
++++ b/pyresample/test/test_geometry.py
+@@ -1429,7 +1429,7 @@ class Test(unittest.TestCase):
+                                 3712, 3712,
+                                 area_extent)
+         geo_res = area_def.geocentric_resolution()
+-        np.testing.assert_allclose(10646.562531, geo_res)
++        np.testing.assert_allclose(10646.562531, geo_res, rtol=1e-05)
+ 
+         # non-square area non-space area
+         area_extent = (-4570248.477339745, -3561247.267842293, 0, 3570248.477339745)
+@@ -1438,7 +1438,7 @@ class Test(unittest.TestCase):
+                                 2000, 5000,
+                                 area_extent)
+         geo_res = area_def.geocentric_resolution()
+-        np.testing.assert_allclose(2397.687307, geo_res)
++        np.testing.assert_allclose(2397.687307, geo_res, rtol=1e-05)
+ 
+         # lon/lat
+         proj_dict = {'a': 6378169.0, 'b': 6356583.8, 'proj': 'latlong'}
+@@ -1447,7 +1447,7 @@ class Test(unittest.TestCase):
+                                 3712, 3712,
+                                 [-130, 30, -120, 40])
+         geo_res = area_def.geocentric_resolution()
+-        np.testing.assert_allclose(298.647232, geo_res)
++        np.testing.assert_allclose(298.647232, geo_res, rtol=1e-04)
+ 
+     def test_area_def_geocentric_resolution_latlong(self):
+         """Test the AreaDefinition.geocentric_resolution method on a latlong projection."""



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyresample/-/commit/c5cc909de2696d52bd09935f01e36916f9c750e6

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyresample/-/commit/c5cc909de2696d52bd09935f01e36916f9c750e6
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20221207/60febc62/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list