[arch-commits] Commit in python-shapely/repos/community-staging-x86_64 (3 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 8 06:01:32 UTC 2021
Date: Wednesday, December 8, 2021 @ 06:01:32
Author: felixonmars
Revision: 1065625
archrelease: copy trunk to community-staging-x86_64
Added:
python-shapely/repos/community-staging-x86_64/PKGBUILD
(from rev 1065624, python-shapely/trunk/PKGBUILD)
python-shapely/repos/community-staging-x86_64/geos-3.9.patch
(from rev 1065624, python-shapely/trunk/geos-3.9.patch)
Deleted:
python-shapely/repos/community-staging-x86_64/PKGBUILD
----------------+
PKGBUILD | 88 ++++++++++++++++++++++++++++---------------------------
geos-3.9.patch | 30 ++++++++++++++++++
2 files changed, 76 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-08 06:01:22 UTC (rev 1065624)
+++ PKGBUILD 2021-12-08 06:01:32 UTC (rev 1065625)
@@ -1,42 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: David Verelst <david dot verelst at gmail com>
-# Contributor: richli
-
-pkgname=python-shapely
-pkgver=1.7.1
-pkgrel=4
-pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
-arch=('x86_64')
-url="https://pypi.python.org/pypi/Shapely"
-license=('BSD')
-depends=('geos' 'python')
-optdepends=('python-numpy: for shapely.vectorized submodule')
-makedepends=('python-setuptools' 'python-packaging' 'python-numpy' 'cython')
-checkdepends=('python-pytest')
-source=("https://pypi.io/packages/source/S/Shapely/Shapely-${pkgver}.tar.gz")
-sha512sums=('f5991a35692241ff48f7219edd88bdab7da5b9135c22d26ca530cbdb9160717fd88f2913a9da8ae53869c68955418c14ffd5d798df196639de63660226bd6412')
-
-prepare() {
- rm -r Shapely-$pkgver/_vendor
- sed -i 's/from _vendor.packaging./from packaging./' Shapely-$pkgver/setup.py
-}
-
-build() {
- cd Shapely-$pkgver
- python setup.py build
-}
-
-check() {
- # TODO: make the hack less dirty...
-
- cd Shapely-$pkgver
- mv shapely shapely.bak
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.10:$PYTHONPATH" py.test
- mv shapely.bak shapely
-}
-
-package() {
- cd Shapely-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-shapely/repos/community-staging-x86_64/PKGBUILD (from rev 1065624, python-shapely/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-08 06:01:32 UTC (rev 1065625)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: David Verelst <david dot verelst at gmail com>
+# Contributor: richli
+
+pkgname=python-shapely
+pkgver=1.7.1
+pkgrel=5
+pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
+arch=('x86_64')
+url="https://pypi.python.org/pypi/Shapely"
+license=('BSD')
+depends=('geos' 'python')
+optdepends=('python-numpy: for shapely.vectorized submodule')
+makedepends=('python-setuptools' 'python-packaging' 'python-numpy' 'cython')
+checkdepends=('python-pytest')
+source=("https://pypi.io/packages/source/S/Shapely/Shapely-${pkgver}.tar.gz"
+ geos-3.9.patch)
+sha512sums=('f5991a35692241ff48f7219edd88bdab7da5b9135c22d26ca530cbdb9160717fd88f2913a9da8ae53869c68955418c14ffd5d798df196639de63660226bd6412'
+ '9cc2e1a8b1272451ccfde2af287cb4dc31811b67c02c3d94f235c039f99173dcd8e128a0a7c57a8c098b45290e4acc9d957914c6719c1c7076bb62ff2aac837d')
+
+prepare() {
+ cd Shapely-$pkgver
+ patch -Np1 -i ../geos-3.9.patch
+ rm -r _vendor
+ sed -i 's/from _vendor.packaging./from packaging./' setup.py
+}
+
+build() {
+ cd Shapely-$pkgver
+ python setup.py build
+}
+
+check() {
+ # TODO: make the hack less dirty...
+
+ cd Shapely-$pkgver
+ mv shapely shapely.bak
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.10:$PYTHONPATH" py.test
+ mv shapely.bak shapely
+}
+
+package() {
+ cd Shapely-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Copied: python-shapely/repos/community-staging-x86_64/geos-3.9.patch (from rev 1065624, python-shapely/trunk/geos-3.9.patch)
===================================================================
--- geos-3.9.patch (rev 0)
+++ geos-3.9.patch 2021-12-08 06:01:32 UTC (rev 1065625)
@@ -0,0 +1,30 @@
+From 611a0b3b2047bf8a49db32dc4b30684a10f5b6eb Mon Sep 17 00:00:00 2001
+From: Mike Taves <mwtoews at gmail.com>
+Date: Mon, 14 Dec 2020 12:06:36 +1300
+Subject: [PATCH] Expand CI and tests to support GEOS 3.9.0beta2 (#1042)
+
+* Expand CI and tests to support GEOS 3.9.0beta2
+
+* Change build/install scripts to be CI agnostic
+
+* disable AppVeyor's ctest fail due to GEOS issue with simplify on MSVC
+
+* find_library() for Linux should use 'libgeos_c'
+---
+ tests/test_svg.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/tests/test_svg.py b/tests/test_svg.py
+index fcc2679..dac3e71 100644
+--- a/tests/test_svg.py
++++ b/tests/test_svg.py
+@@ -174,7 +174,8 @@ class SvgTestCase(unittest.TestCase):
+ 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" '
More information about the arch-commits
mailing list