Accepting request 862083 from Application:Geo

OBS-URL: https://build.opensuse.org/request/show/862083
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Shapely?expand=0&rev=17
This commit is contained in:
2021-01-10 18:44:44 +00:00
committed by Git OBS Bridge
3 changed files with 38 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
From 77879a954d24d1596f986d16ba3eff5e13861164 Mon Sep 17 00:00:00 2001
From: Mike Taves <mwtoews@gmail.com>
Date: Thu, 3 Dec 2020 17:14:34 +1300
Subject: [PATCH] Expand CI and tests to support GEOS 3.9.0beta2
---
.travis.yml | 6 ++---
appveyor.yml | 2 +-
...test_create_inconsistent_dimensionality.py | 10 +++++++-
tests/test_svg.py | 3 ++-
tests/test_wkb.py | 25 ++++++++++++++++++-
5 files changed, 39 insertions(+), 7 deletions(-)
diff --git a/tests/test_svg.py b/tests/test_svg.py
index fcc2679d..dac3e71f 100644
--- a/tests/test_svg.py
+++ b/tests/test_svg.py
@@ -174,7 +174,8 @@ def test_collection(self):
self.assertSVG(GeometryCollection(), '<g />')
# Valid
self.assertSVG(
- Point(7, 3).union(LineString([(4, 2), (8, 4)])),
+ GeometryCollection(
+ [Point(7, 3), LineString([(4, 2), (8, 4)])]),
'<g><circle cx="7.0" cy="3.0" r="3.0" stroke="#555555" '
'stroke-width="1.0" fill="#66cc99" opacity="0.6" />'
'<polyline fill="none" stroke="#66cc99" stroke-width="2.0" '

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Jan 9 20:58:53 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- Add Shapely-fix-svg-collection-pr1042.patch
gh#Toblerity/Shapely#1042 to fix failing test due to newer
matplotlib version (and GEOS?)
-------------------------------------------------------------------
Sun Jan 3 18:57:57 UTC 2021 - Benjamin Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Shapely
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,8 @@ Summary: Geospatial geometries, predicates, and operations
License: BSD-3-Clause
URL: https://github.com/Toblerity/Shapely
Source: https://files.pythonhosted.org/packages/source/S/Shapely/Shapely-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Shapely-fix-svg-collection-pr1042.patch -- from gh#Toblerity/Shapely#1042 fix svg test
Patch0: Shapely-fix-svg-collection-pr1042.patch
BuildRequires: %{python_module Cython >= 0.19}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel}
@@ -55,7 +57,7 @@ but can be readily integrated with packages that are like WorldMill
and pyproj.
%prep
%setup -q -n Shapely-%{version}
%autosetup -p1 -n Shapely-%{version}
%build
CFLAGS="%{optflags} `geos-config --cflags` LDFLAGS=`geos-config --clibs`"