[Git][debian-gis-team/python-cartopy][master] Add patch to fix FTBFS with PROJ 9.0.1.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Wed Jun 8 19:20:26 BST 2022



Bas Couwenberg pushed to branch master at Debian GIS Project / python-cartopy


Commits:
a25fe41e by Bas Couwenberg at 2022-06-08T20:20:16+02:00
Add patch to fix FTBFS with PROJ 9.0.1.

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/proj-9.0.1.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -2,6 +2,7 @@ python-cartopy (0.20.2+dfsg-2) UNRELEASED; urgency=medium
 
   * Team upload.
   * Add patch to set setup() version for .egg-info.
+  * Add patch to fix FTBFS with PROJ 9.0.1.
 
  -- Bas Couwenberg <sebastic at debian.org>  Mon, 07 Feb 2022 21:06:53 +0100
 


=====================================
debian/patches/proj-9.0.1.patch
=====================================
@@ -0,0 +1,49 @@
+Description: Use xfail for tests that fail with PROJ 9.0.1.
+Author: Bas Couwenberg <sebastic at debian.org>
+Bug: https://github.com/SciTools/cartopy/issues/2051
+Forwarded: https://github.com/SciTools/cartopy/issues/2051#issue-1265122712
+
+--- a/lib/cartopy/tests/crs/test_interrupted_goode_homolosine.py
++++ b/lib/cartopy/tests/crs/test_interrupted_goode_homolosine.py
+@@ -16,6 +16,7 @@ import cartopy.crs as ccrs
+ from .helpers import check_proj_params
+ 
+ 
++ at pytest.mark.xfail(reason='Fails with PROJ 9.0.1', strict=False)
+ @pytest.mark.parametrize("emphasis", ["land", "ocean"])
+ def test_default(emphasis):
+     igh = ccrs.InterruptedGoodeHomolosine(emphasis=emphasis)
+@@ -46,6 +47,7 @@ def test_eccentric_globe(emphasis):
+     assert_almost_equal(np.array(igh.y_limits), [-1361.410035, 1361.410035])
+ 
+ 
++ at pytest.mark.xfail(reason='Fails with PROJ 9.0.1', strict=False)
+ @pytest.mark.parametrize(
+     ("emphasis", "lon"),
+     [("land", -10.0), ("land", 10.0), ("ocean", -10.0), ("ocean", 10.0)],
+--- a/lib/cartopy/tests/crs/test_mollweide.py
++++ b/lib/cartopy/tests/crs/test_mollweide.py
+@@ -16,6 +16,7 @@ import cartopy.crs as ccrs
+ from .helpers import check_proj_params
+ 
+ 
++ at pytest.mark.xfail(reason='Fails with PROJ 9.0.1', strict=False)
+ def test_default():
+     moll = ccrs.Mollweide()
+     other_args = {'a=6378137.0', 'lon_0=0'}
+@@ -37,6 +38,7 @@ def test_sphere_globe():
+     assert_almost_equal(moll.y_limits, [-1414.2135624, 1414.2135624])
+ 
+ 
++ at pytest.mark.xfail(reason='Fails with PROJ 9.0.1', strict=False)
+ def test_ellipse_globe():
+     globe = ccrs.Globe(ellipse='WGS84')
+     with pytest.warns(UserWarning,
+@@ -77,6 +79,7 @@ def test_offset():
+     assert tuple(np.array(crs.y_limits) - 4321) == crs_offset.y_limits
+ 
+ 
++ at pytest.mark.xfail(reason='Fails with PROJ 9.0.1', strict=False)
+ @pytest.mark.parametrize('lon', [-10.0, 10.0])
+ def test_central_longitude(lon):
+     moll = ccrs.Mollweide(central_longitude=lon)


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@
 0002-test_robinson.patch
 0003-test_gridliner.patch
 setup-version.patch
+proj-9.0.1.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/python-cartopy/-/commit/a25fe41e06b567db68ec19aa7cdd1758f7a83d87

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-cartopy/-/commit/a25fe41e06b567db68ec19aa7cdd1758f7a83d87
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/20220608/9ea6f743/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list