From a4997984ec0738721ca05e6dc6c5930ecfb1c562 Mon Sep 17 00:00:00 2001 From: Mathias Hauser Date: Fri, 28 Aug 2026 17:07:23 +0200 Subject: [PATCH 1/3] revert proj 9.8 changes --- mplotutils/tests/test_mapticklabels.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mplotutils/tests/test_mapticklabels.py b/mplotutils/tests/test_mapticklabels.py index 48e9bd2..a66ac8b 100644 --- a/mplotutils/tests/test_mapticklabels.py +++ b/mplotutils/tests/test_mapticklabels.py @@ -61,7 +61,10 @@ def test_xticklabels_robinson(pass_ax): mpu.xticklabels(lon, ax=ax_, size=8) # changed value with proj 9.8; https://github.com/mpytools/mplotutils/issues/202 + # reverted with https://github.com/SciTools/cartopy/pull/2653 y_pos = -89.845635 + y_pos = -89.99 # 6460 + # two elements are not added because they are beyond the map limits lon = lon[1:-1] From 467a0d15c4842f85af8950e31e978539a369f0ae Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 15:08:16 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mplotutils/tests/test_mapticklabels.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mplotutils/tests/test_mapticklabels.py b/mplotutils/tests/test_mapticklabels.py index a66ac8b..0b175fc 100644 --- a/mplotutils/tests/test_mapticklabels.py +++ b/mplotutils/tests/test_mapticklabels.py @@ -63,8 +63,7 @@ def test_xticklabels_robinson(pass_ax): # changed value with proj 9.8; https://github.com/mpytools/mplotutils/issues/202 # reverted with https://github.com/SciTools/cartopy/pull/2653 y_pos = -89.845635 - y_pos = -89.99 # 6460 - + y_pos = -89.99 # 6460 # two elements are not added because they are beyond the map limits lon = lon[1:-1] From 25ec847b46e096030e15046987ad83c0b464ac65 Mon Sep 17 00:00:00 2001 From: Mathias Hauser Date: Fri, 28 Aug 2026 17:13:11 +0200 Subject: [PATCH 3/3] conditional values --- mplotutils/tests/test_mapticklabels.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mplotutils/tests/test_mapticklabels.py b/mplotutils/tests/test_mapticklabels.py index 0b175fc..8455360 100644 --- a/mplotutils/tests/test_mapticklabels.py +++ b/mplotutils/tests/test_mapticklabels.py @@ -1,7 +1,9 @@ +import cartopy import cartopy.crs as ccrs import numpy as np import pytest import shapely +from packaging.version import Version import mplotutils as mpu @@ -62,8 +64,10 @@ def test_xticklabels_robinson(pass_ax): # changed value with proj 9.8; https://github.com/mpytools/mplotutils/issues/202 # reverted with https://github.com/SciTools/cartopy/pull/2653 - y_pos = -89.845635 - y_pos = -89.99 # 6460 + if Version(cartopy.__version__) > Version("0.25.0"): + y_pos = -89.99 # 6460 + else: + y_pos = -89.845635 # two elements are not added because they are beyond the map limits lon = lon[1:-1]