From 41880577d5bc9161a9ba076965e95b905d68860844845b3a7b05d78874e6bca1 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sat, 23 Sep 2023 09:18:13 +0000 Subject: [PATCH] - Update to 2.0.1 ## Bug fixes: * Fix regression in the Polygon() constructor taking a sequence of Points (#1662). * Fix regression in the geometry constructors when passing decimal.Decimal coordinate values (#1707). * Fix STRtree() to not make the passed geometry array immutable as side-effect of the constructor (#1714). * Fix the directed keyword in shapely.ops.linemerge() (#1695). ## Improvements: * Expose the function to get a matplotlib Patch object from a (Multi)Polygon (without already plotting it) publicly as :func:shapely.plotting.patch_from_polygon (#1704). - Release 2.0.0 * Shapely version 2.0.0 is a major release featuring a complete refactor of the internals and new vectorized (element-wise) array operations providing considerable performance improvements (based on the developments in the PyGEOS package), along with several breaking API changes and many feature improvements. - Full release notes and detailed description: * https://shapely.readthedocs.io/en/latest/release/2.x.html OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-Shapely?expand=0&rev=32 --- Shapely-1.8.4.tar.gz | 3 --- python-Shapely.changes | 26 ++++++++++++++++++++++++++ python-Shapely.spec | 41 +++++++++++++++++------------------------ shapely-2.0.1.tar.gz | 3 +++ 4 files changed, 46 insertions(+), 27 deletions(-) delete mode 100644 Shapely-1.8.4.tar.gz create mode 100644 shapely-2.0.1.tar.gz diff --git a/Shapely-1.8.4.tar.gz b/Shapely-1.8.4.tar.gz deleted file mode 100644 index 4ad3bc1..0000000 --- a/Shapely-1.8.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a195e51caafa218291f2cbaa3fef69fd3353c93ec4b65b2a4722c4cf40c3198c -size 199920 diff --git a/python-Shapely.changes b/python-Shapely.changes index 5a96b63..e7341bc 100644 --- a/python-Shapely.changes +++ b/python-Shapely.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Sat Sep 23 09:08:05 UTC 2023 - Ben Greiner + +- Update to 2.0.1 + ## Bug fixes: + * Fix regression in the Polygon() constructor taking a sequence + of Points (#1662). + * Fix regression in the geometry constructors when passing + decimal.Decimal coordinate values (#1707). + * Fix STRtree() to not make the passed geometry array immutable + as side-effect of the constructor (#1714). + * Fix the directed keyword in shapely.ops.linemerge() (#1695). + ## Improvements: + * Expose the function to get a matplotlib Patch object from a + (Multi)Polygon (without already plotting it) publicly as + :func:shapely.plotting.patch_from_polygon (#1704). +- Release 2.0.0 + * Shapely version 2.0.0 is a major release featuring a complete + refactor of the internals and new vectorized (element-wise) + array operations providing considerable performance + improvements (based on the developments in the PyGEOS package), + along with several breaking API changes and many feature + improvements. + - Full release notes and detailed description: + * https://shapely.readthedocs.io/en/latest/release/2.x.html + ------------------------------------------------------------------- Sat Oct 1 21:19:48 UTC 2022 - andy great diff --git a/python-Shapely.spec b/python-Shapely.spec index 8cc091c..49eb2c3 100644 --- a/python-Shapely.spec +++ b/python-Shapely.spec @@ -1,7 +1,7 @@ # # spec file for package python-Shapely # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,32 +16,31 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%bcond_without test -%define skip_python2 1 Name: python-Shapely -Version: 1.8.4 +Version: 2.0.1 Release: 0 Summary: Geospatial geometries, predicates, and operations License: BSD-3-Clause URL: https://github.com/shapely/shapely -Source: https://files.pythonhosted.org/packages/source/S/Shapely/Shapely-%{version}.tar.gz -BuildRequires: %{python_module Cython} -BuildRequires: %{python_module devel >= 3.6} -BuildRequires: %{python_module numpy-devel} -BuildRequires: %{python_module pytest} +Source: https://files.pythonhosted.org/packages/source/s/shapely/shapely-%{version}.tar.gz +BuildRequires: %{python_module Cython >= 0.29 with %python-Cython < 3} +BuildRequires: %{python_module devel >= 3.8} +BuildRequires: %{python_module numpy-devel >= 1.16} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# SECTION test +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module matplotlib} +# /SECTION BuildRequires: fdupes BuildRequires: geos-devel >= 3.5 BuildRequires: python-rpm-macros -%if 0%{?suse_version} > 1320 -BuildRequires: %{python_module matplotlib} -%endif # Shapely calls the GEOS libs libgeos and libgeos_c via ctypes in python scripts, undetected by rpm ld analyzer. # (libgeos_c1 is detected due to some Cython optimized lib, but libgeos3 is not) # use requires_eq in order to be detectable by the python_subpackages rewriter %requires_eq %(rpm -q --requires geos-devel | grep libgeos) -Recommends: python-numpy +Requires: python-numpy >= 1.16 Provides: python-shapely = %{version}-%{release} Obsoletes: python-shapely < %{version}-%{release} %python_subpackages @@ -55,22 +54,16 @@ but can be readily integrated with packages that are like WorldMill and pyproj. %prep -%autosetup -p1 -n Shapely-%{version} +%autosetup -p1 -n shapely-%{version} %build CFLAGS="%{optflags} `geos-config --cflags` LDFLAGS=`geos-config --clibs`" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} -# Those are just needed to build cython extension -# Not for distribute -rm -fv %{buildroot}%{_prefix}/shapely/_geos.pxi -rm -frv %{buildroot}%{_prefix}/shapely -%python_expand rm %{buildroot}%{$python_sitearch}/shapely/*/*.c - %check # make sure not to import the source dir without compiled shapely.vectorized during tests mkdir testenv @@ -83,6 +76,6 @@ popd %license LICENSE.txt %doc CREDITS.txt README.rst docs/* %{python_sitearch}/shapely -%{python_sitearch}/Shapely-%{version}*-info +%{python_sitearch}/shapely-%{version}.dist-info %changelog diff --git a/shapely-2.0.1.tar.gz b/shapely-2.0.1.tar.gz new file mode 100644 index 0000000..0e10221 --- /dev/null +++ b/shapely-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66a6b1a3e72ece97fc85536a281476f9b7794de2e646ca8a4517e2e3c1446893 +size 275535