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