mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
testing/py3-euclid3: build with gpep517
This commit is contained in:
parent
2771d22f30
commit
95f5a70caf
@ -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="
|
||||
|
Loading…
Reference in New Issue
Block a user