testing/py3-euclid3: build with gpep517

This commit is contained in:
ptrcnull 2024-08-30 23:24:59 +02:00
parent 2771d22f30
commit 95f5a70caf

View File

@ -2,7 +2,7 @@
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-euclid3
pkgver=0.01
pkgrel=7
pkgrel=8
pkgdesc="Vector, matrix, quaternion and some geometry in 2D and 3D for Python 3"
url="https://github.com/euclid3/euclid3"
arch="noarch"
@ -10,6 +10,7 @@ license="LGPL-2.1-or-later"
depends="python3"
makedepends="
py3-setuptools
py3-gpep517
"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/e/euclid3/euclid3-$pkgver.tar.gz"
@ -17,15 +18,14 @@ builddir="$srcdir/euclid3-$pkgver"
options="!check" # no tests
build() {
python3 setup.py build
}
check() {
python3 test_euclid.py
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="