Commit f82b96e4 authored by Holger Jaekel's avatar Holger Jaekel Committed by Leo
Browse files

testing/py3-shapely: new aport

parent 897d8393
Author: Holger Jaekel <holger.jaekel@gmx.de>
Summary: use Alpine py3-packaging instead of internal
----
--- a/setup.py
+++ b/setup.py
@@ -73,7 +73,7 @@ except ImportError:
from distutils.errors import CCompilerError, DistutilsExecError, \
DistutilsPlatformError
-from _vendor.packaging.version import Version
+from packaging.version import Version
# Get geos_version from GEOS dynamic library, which depends on
# GEOS_LIBRARY_PATH and/or GEOS_CONFIG environment variables
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
_pkgname=shapely
pkgname=py3-$_pkgname
_pkgverbase=1.6.4
_pkgversuffix=.post2
_pkgveralpinesuffix=.p2
pkgver=${_pkgverbase}${_pkgveralpinesuffix}
pkgrel=0
pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
url="https://pypi.python.org/pypi/Shapely"
arch="all"
license="BSD-3-Clause"
depends="
py3-numpy
"
makedepends="
geos-dev
py3-matplotlib
py3-numpy-dev
py3-packaging
py3-setuptools
python3-dev
cython3
"
checkdepends="
py3-pytest
"
source="
https://pypi.io/packages/source/S/Shapely/Shapely-${_pkgverbase}${_pkgversuffix}.tar.gz
10-packaging.patch
"
builddir="$srcdir/Shapely-${_pkgverbase}${_pkgversuffix}"
build() {
rm -r _vendor # This is provided by py3-packaging
python3 setup.py build
}
check() {
# These examples are executed during test, but they depend on pylab, which is not in Alpine
rm -r shapely/examples/*
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=2
}
sha512sums="027c816ef2104f654569ca658b52b87c60e5ba6a45927fcc51c23dd1922f3f9f7fdcea3601160b0a999e39611617142833ccac790777093be8b96a0d9083f78f Shapely-1.6.4.post2.tar.gz
7cebaf4e059d71e1cd374539eb056491afbf736e05bf369a3c6533306885940d108340ada56ec7662e30aac04d2bd3ac4019ccf2fc447151d2274009d93d00fe 10-packaging.patch"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment