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 2024-07-28 17:20:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyproj (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyproj.new.1882 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyproj"

Sun Jul 28 17:20:01 2024 rev:32 rq:1189901 version:3.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyproj/python-pyproj.changes      
2024-05-09 17:28:47.183670404 +0200
+++ /work/SRC/openSUSE:Factory/.python-pyproj.new.1882/python-pyproj.changes    
2024-07-28 17:20:34.614511055 +0200
@@ -1,0 +2,8 @@
+Sat Jul 20 12:36:38 UTC 2024 - Libor Pechacek <lpecha...@gmx.com>
+
+- Fix test/crs/test_crs.py::test_datum__from_epsg failure
+  (upstream #1403)
+- Add upstream patch:
+  * v3.6.1-test-datum-ensemble-allowing-new-members.patch
+
+-------------------------------------------------------------------

New:
----
  v3.6.1-test-datum-ensemble-allowing-new-members.patch

BETA DEBUG BEGIN:
  New:- Add upstream patch:
  * v3.6.1-test-datum-ensemble-allowing-new-members.patch
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyproj.spec ++++++
--- /var/tmp/diff_new_pack.BXt8qs/_old  2024-07-28 17:20:35.154532634 +0200
+++ /var/tmp/diff_new_pack.BXt8qs/_new  2024-07-28 17:20:35.158532794 +0200
@@ -26,6 +26,7 @@
 URL:            https://github.com/pyproj4/pyproj
 Source:         
https://files.pythonhosted.org/packages/source/p/pyproj/pyproj-%{version}.tar.gz
 Patch0:         
v3.6.1-BUG-Support-azimuthal_equidistant-coordinate-operati.patch
+Patch1:         v3.6.1-test-datum-ensemble-allowing-new-members.patch
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel >= 3.8}
 BuildRequires:  %{python_module pip}

++++++ v3.6.1-test-datum-ensemble-allowing-new-members.patch ++++++
>From ec9509f0561dbc243ad6df01613f38bd83a0e7cc Mon Sep 17 00:00:00 2001
From: Javier Jimenez Shaw <j...@jimenezshaw.com>
Date: Sun, 2 Jun 2024 03:38:30 +0200
Subject: [PATCH] test datum ensemble allowing new members. fixes #1403 (#1407)

---
 test/crs/test_crs.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/test/crs/test_crs.py b/test/crs/test_crs.py
index 794e1c3f0834..d3f4fcb57bc9 100644
--- a/test/crs/test_crs.py
+++ b/test/crs/test_crs.py
@@ -728,7 +728,7 @@ def test_coordinate_operation__from_authority__empty():
 
 
 def test_datum__from_epsg():
-    datum_wkt = (
+    datum_wkt_prefix = (
         'ENSEMBLE["World Geodetic System 1984 ensemble",'
         'MEMBER["World Geodetic System 1984 (Transit)",ID["EPSG",1166]],'
         'MEMBER["World Geodetic System 1984 (G730)",ID["EPSG",1152]],'
@@ -737,10 +737,14 @@ def test_datum__from_epsg():
         'MEMBER["World Geodetic System 1984 (G1674)",ID["EPSG",1155]],'
         'MEMBER["World Geodetic System 1984 (G1762)",ID["EPSG",1156]],'
         'MEMBER["World Geodetic System 1984 (G2139)",ID["EPSG",1309]],'
+    )
+    datum_wkt_suffix = (
         'ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1],'
         'ID["EPSG",7030]],ENSEMBLEACCURACY[2.0],ID["EPSG",6326]]'
     )
-    assert Datum.from_epsg("6326").to_wkt() == datum_wkt
+    # Testing this way avoids problems when new members are added to the datum 
ensemble
+    assert Datum.from_epsg("6326").to_wkt().startswith(datum_wkt_prefix)
+    assert Datum.from_epsg("6326").to_wkt().endswith(datum_wkt_suffix)
 
 
 def test_datum__from_authority():
-- 
2.45.2

Reply via email to