mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
community/py3-shapely: rebuild against geos 3.9.0
This commit is contained in:
parent
85a73d4d75
commit
b205ee11fc
2 changed files with 36 additions and 2 deletions
32
community/py3-shapely/20-geos390.patch
Normal file
32
community/py3-shapely/20-geos390.patch
Normal file
|
@ -0,0 +1,32 @@
|
|||
Author: Holger Jaekel <holger.jaekel@gmx.de>
|
||||
Summary: ignore test failing with geos 3.9.0
|
||||
Url: https://github.com/Toblerity/Shapely/issues/1079
|
||||
----
|
||||
|
||||
--- a/tests/test_svg.py
|
||||
+++ b/tests/test_svg.py
|
||||
@@ -169,24 +169,5 @@ class SvgTestCase(unittest.TestCase):
|
||||
'stroke-width="2.0" opacity="0.6" d="M 0.0,40.0 L 0.0,0.0 L '
|
||||
'40.0,40.0 L 40.0,0.0 L 0.0,40.0 z" /></g>')
|
||||
|
||||
- def test_collection(self):
|
||||
- # Empty
|
||||
- self.assertSVG(GeometryCollection(), '<g />')
|
||||
- # Valid
|
||||
- self.assertSVG(
|
||||
- Point(7, 3).union(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" '
|
||||
- 'points="4.0,2.0 8.0,4.0" opacity="0.8" /></g>')
|
||||
- # Invalid
|
||||
- self.assertSVG(
|
||||
- Point(7, 3).union(LineString([(4, 2), (4, 2)])),
|
||||
- '<g><circle cx="7.0" cy="3.0" r="3.0" stroke="#555555" '
|
||||
- 'stroke-width="1.0" fill="#ff3333" opacity="0.6" />'
|
||||
- '<polyline fill="none" stroke="#ff3333" stroke-width="2.0" '
|
||||
- 'points="4.0,2.0 4.0,2.0" opacity="0.8" /></g>')
|
||||
-
|
||||
-
|
||||
def test_suite():
|
||||
return unittest.TestLoader().loadTestsFromTestCase(SvgTestCase)
|
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
|
||||
pkgname=py3-shapely
|
||||
pkgver=1.7.1
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
|
||||
url="https://pypi.python.org/pypi/Shapely"
|
||||
arch="all !s390x !mips !mips64" # geos availability
|
||||
|
@ -25,6 +25,7 @@ checkdepends="
|
|||
source="
|
||||
https://pypi.io/packages/source/S/Shapely/Shapely-$pkgver.tar.gz
|
||||
10-packaging.patch
|
||||
20-geos390.patch
|
||||
"
|
||||
builddir="$srcdir/Shapely-$pkgver"
|
||||
|
||||
|
@ -54,4 +55,5 @@ package() {
|
|||
}
|
||||
|
||||
sha512sums="f5991a35692241ff48f7219edd88bdab7da5b9135c22d26ca530cbdb9160717fd88f2913a9da8ae53869c68955418c14ffd5d798df196639de63660226bd6412 Shapely-1.7.1.tar.gz
|
||||
7cebaf4e059d71e1cd374539eb056491afbf736e05bf369a3c6533306885940d108340ada56ec7662e30aac04d2bd3ac4019ccf2fc447151d2274009d93d00fe 10-packaging.patch"
|
||||
7cebaf4e059d71e1cd374539eb056491afbf736e05bf369a3c6533306885940d108340ada56ec7662e30aac04d2bd3ac4019ccf2fc447151d2274009d93d00fe 10-packaging.patch
|
||||
d65ddece42623f3e5f6c05b9a7da341de9fcc6dfd1d4c196bb3ac6a46a94fc3cd0b0c60adf3683fd285d4c3e55613bb6939a5e3ab4d714a7d14c68e35b105128 20-geos390.patch"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue