testing/py3-simber: build with gpep517

This commit is contained in:
ptrcnull 2024-08-08 20:10:53 +02:00
parent a67f31c6df
commit 74ace663ef

View File

@ -3,28 +3,33 @@
pkgname=py3-simber
_pkgname=simber
pkgver=0.2.6
pkgrel=3
pkgrel=4
pkgdesc="Simple, minimal and powerful logging library for Python"
url="https://github.com/deepjyoti30/simber"
arch="noarch"
license="MIT"
depends="py3-colorama"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-pytest $depends"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/deepjyoti30/simber/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
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="