Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Shapely for openSUSE:Factory checked in at 2022-07-21 11:33:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Shapely (Old) and /work/SRC/openSUSE:Factory/.python-Shapely.new.1523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Shapely" Thu Jul 21 11:33:16 2022 rev:21 rq:990300 version:1.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Shapely/python-Shapely.changes 2022-06-20 15:39:32.887058914 +0200 +++ /work/SRC/openSUSE:Factory/.python-Shapely.new.1523/python-Shapely.changes 2022-07-21 11:33:48.422972218 +0200 @@ -1,0 +2,6 @@ +Tue Jul 19 20:10:00 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Add Shapely-issue1436-ef380ba-geos311.patch + * gh#shapely/shapely#1436 -- work around issue with geos 3.11.0 + +------------------------------------------------------------------- New: ---- Shapely-issue1436-ef380ba-geos311.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Shapely.spec ++++++ --- /var/tmp/diff_new_pack.mjwTU1/_old 2022-07-21 11:33:48.930972718 +0200 +++ /var/tmp/diff_new_pack.mjwTU1/_new 2022-07-21 11:33:48.934972722 +0200 @@ -26,6 +26,8 @@ License: BSD-3-Clause URL: https://github.com/shapely/shapely Source: https://files.pythonhosted.org/packages/source/S/Shapely/Shapely-%{version}.tar.gz +# PATCH-FIX-UPSTREAM Shapely-issue1436-ef380ba-geos311.patch gh#shapely/shapely#1436 -- work around issue with geos 3.11.0 +Patch1: Shapely-issue1436-ef380ba-geos311.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel >= 3.6} BuildRequires: %{python_module numpy-devel} ++++++ Shapely-issue1436-ef380ba-geos311.patch ++++++ >From ef380ba8796702a56e05138ed8599e89f617d2c9 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche <jorisvandenboss...@gmail.com> Date: Sun, 10 Jul 2022 11:14:30 +0200 Subject: [PATCH] update parallel offset test for GEOS 3.11 --- tests/test_parallel_offset.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_parallel_offset.py b/tests/test_parallel_offset.py index 7dbbe55cd..661291a55 100644 --- a/tests/test_parallel_offset.py +++ b/tests/test_parallel_offset.py @@ -9,9 +9,11 @@ def test_parallel_offset_linestring(self): left = line1.parallel_offset(5, 'left') self.assertEqual(left, LineString([(0, 5), (10, 5)])) right = line1.parallel_offset(5, 'right') - self.assertEqual(right, LineString([(10, -5), (0, -5)])) + # using spatial equality because the order of coordinates is not guaranteed + # (GEOS 3.11 changed this, see https://github.com/shapely/shapely/issues/1436) + assert right.equals(LineString([(10, -5), (0, -5)])) right = line1.parallel_offset(-5, 'left') - self.assertEqual(right, LineString([(10, -5), (0, -5)])) + assert right.equals(LineString([(10, -5), (0, -5)])) left = line1.parallel_offset(-5, 'right') self.assertEqual(left, LineString([(0, 5), (10, 5)]))