backports/py3-mapbox-earcut: move to gpep517
This commit is contained in:
parent
55ac054f92
commit
a24da23d5d
1 changed files with 12 additions and 9 deletions
|
@ -1,30 +1,33 @@
|
|||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
||||
# Maintainer:
|
||||
pkgname=py3-mapbox-earcut
|
||||
pkgver=1.0.1
|
||||
pkgrel=0
|
||||
pkgrel=2
|
||||
pkgdesc="Python bindings for the mapbox earcut c++ library"
|
||||
url="https://github.com/skogler/mapbox_earcut_python"
|
||||
arch="all"
|
||||
license="ISC"
|
||||
depends="py3-numpy"
|
||||
makedepends="py3-setuptools py3-pybind11-dev python3-dev"
|
||||
checkdepends="pytest"
|
||||
makedepends="py3-setuptools py3-pybind11-dev python3-dev py3-gpep517"
|
||||
checkdepends="py3-pytest"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/skogler/mapbox_earcut_python/archive/refs/tags/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/mapbox_earcut_python-$pkgver"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 -m venv --clear --without-pip --system-site-packages test-env
|
||||
test-env/bin/python3 setup.py install
|
||||
test-env/bin/python3 -m pytest
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
|
Loading…
Reference in a new issue