Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyproj for openSUSE:Factory checked in at 2026-02-25 21:10:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyproj (Old) and /work/SRC/openSUSE:Factory/.python-pyproj.new.1977 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyproj" Wed Feb 25 21:10:42 2026 rev:36 rq:1334988 version:3.7.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyproj/python-pyproj.changes 2025-08-19 16:45:31.673385361 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyproj.new.1977/python-pyproj.changes 2026-02-25 21:11:14.679837908 +0100 @@ -1,0 +2,8 @@ +Mon Feb 16 19:21:15 UTC 2026 - Libor Pechacek <[email protected]> + +- Fix test/crs/test_crs.py::test_datum_horizontal failure + (upstream #1557) +- Add upstream patch: + * v3.7.2-Fix-tests-for-PROJ-9.7.0-and-newer-1557.patch + +------------------------------------------------------------------- New: ---- v3.7.2-Fix-tests-for-PROJ-9.7.0-and-newer-1557.patch ----------(New B)---------- New:- Add upstream patch: * v3.7.2-Fix-tests-for-PROJ-9.7.0-and-newer-1557.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyproj.spec ++++++ --- /var/tmp/diff_new_pack.ZcHu08/_old 2026-02-25 21:11:15.203859546 +0100 +++ /var/tmp/diff_new_pack.ZcHu08/_new 2026-02-25 21:11:15.203859546 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pyproj # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,8 @@ Group: Development/Languages/Python URL: https://github.com/pyproj4/pyproj Source: https://files.pythonhosted.org/packages/source/p/pyproj/pyproj-%{version}.tar.gz +# PATCH-FIX-UPSTREAM v3.7.2-Fix-tests-for-PROJ-9.7.0-and-newer-1557.patch -- based on commit 055cab9 +Patch0: https://github.com/pyproj4/pyproj/commit/055cab9.patch#/v3.7.2-Fix-tests-for-PROJ-9.7.0-and-newer-1557.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module pip} ++++++ v3.7.2-Fix-tests-for-PROJ-9.7.0-and-newer-1557.patch ++++++ >From 055cab90d1324098e4488a294e0e844c4c824cf0 Mon Sep 17 00:00:00 2001 From: Per Helge Aarnes <[email protected]> Date: Sun, 7 Dec 2025 20:55:30 +0100 Subject: [PATCH] Fix tests for PROJ 9.7.0 and newer (#1557) * update tests for PROJ version 9.7.0 and newer * update tests for PROJ version 9.7.1 --- test/conftest.py | 1 + test/crs/test_crs.py | 27 ++++++++++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/test/conftest.py b/test/conftest.py index 403d7652f..33fd061bc 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -14,6 +14,7 @@ PROJ_LOOSE_VERSION = version.parse(pyproj.__proj_version__) PROJ_GTE_941 = PROJ_LOOSE_VERSION >= version.parse("9.4.1") PROJ_GTE_95 = PROJ_LOOSE_VERSION >= version.parse("9.5.0") +PROJ_GTE_971 = PROJ_LOOSE_VERSION >= version.parse("9.7.1") def unset_data_dir(): diff --git a/test/crs/test_crs.py b/test/crs/test_crs.py index 4dacfaa53..8266bc2dc 100644 --- a/test/crs/test_crs.py +++ b/test/crs/test_crs.py @@ -20,7 +20,7 @@ from pyproj.enums import ProjVersion, WktVersion from pyproj.exceptions import CRSError from pyproj.transformer import TransformerGroup -from test.conftest import PROJ_GTE_941, assert_can_pickle, grids_available +from test.conftest import PROJ_GTE_941, PROJ_GTE_971, assert_can_pickle, grids_available class CustomCRS: @@ -417,7 +417,20 @@ def test_datum(): def test_datum_horizontal(): - assert CRS.from_epsg(5972).datum == CRS.from_epsg(25832).datum + # EPSG:5972 is a Norwegian compound CRS + # In PROJ < 9.7.1, it uses the generic ETRS89 ensemble (same as EPSG:25832) + # In PROJ >= 9.7.1 (EPSG v12.022+), it uses the + # Norway-specific ETRS89-NOR realization + crs_5972 = CRS.from_epsg(5972) + if PROJ_GTE_971: + # Test against ETRS89-NOR [EUREF89] / UTM zone 32N + crs_11022 = CRS.from_epsg(11022) + assert crs_5972.datum is not None + assert crs_5972.datum == crs_11022.datum + else: + # Test against ETRS89 / UTM zone 32N + crs_25832 = CRS.from_epsg(25832) + assert crs_5972.datum == crs_25832.datum def test_datum_unknown(): @@ -571,7 +584,15 @@ def test_sub_crs(): crs = CRS.from_epsg(5972) sub_crs_list = crs.sub_crs_list assert len(sub_crs_list) == 2 - assert sub_crs_list[0] == CRS.from_epsg(25832) + # First sub-CRS should be a projected CRS (UTM zone 32N) + # In PROJ < 9.7.1, it's EPSG:25832 (ETRS89 / UTM zone 32N) + # In PROJ >= 9.7.1 (EPSG v12.022+), it's EPSG:11022 (ETRS89-NOR / UTM zone 32N) + if PROJ_GTE_971: + assert sub_crs_list[0].is_projected + assert sub_crs_list[0] == CRS.from_epsg(11022) + else: + assert sub_crs_list[0] == CRS.from_epsg(25832) + # Second sub-CRS should be NN2000 height (vertical) assert sub_crs_list[1] == CRS.from_epsg(5941) assert crs.is_projected assert crs.is_vertical
