aports/testing/py3-logfury/APKBUILD
2024-10-17 13:07:24 +00:00

47 lines
1.2 KiB
Text

# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
maintainer="lauren n. liberda <lauren@selfisekai.rocks>"
pkgname=py3-logfury
pkgver=1.0.1
pkgrel=0
pkgdesc="Responsible, low-boilerplate logging of method calls for python libraries"
url="https://github.com/reef-technologies/logfury"
arch="noarch"
license="BSD-3-Clause"
makedepends="
py3-gpep517
py3-setuptools
py3-setuptools_scm
py3-wheel
py3-virtualenv
"
checkdepends="py3-testfixtures pytest"
subpackages="$pkgname-pyc $pkgname-doc"
source="
https://github.com/reef-technologies/logfury/archive/v$pkgver/py3-logfury-$pkgver.tar.gz
"
builddir="$srcdir/logfury-$pkgver"
export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
install -Dm755 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
dd00d9bddb3aa69f52b892b8025a2d226d5cd0dcad81bcd5abd701284d7cd09717576e9782deb0c209a31ee1c337394c40e76e960b5b8ade38a1c6e601374f86 py3-logfury-1.0.1.tar.gz
"