1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/community/py3-concurrent-log-handler/APKBUILD
2025-05-11 20:09:41 +00:00

44 lines
1.2 KiB
Text

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-concurrent-log-handler
_pyname=concurrent-log-handler
pkgver=0.9.26
pkgrel=0
arch="noarch"
pkgdesc="RotatingFileHandler replacement with concurrency, gzip and Windows support"
url="https://pypi.python.org/project/concurrent-log-handler"
license="Apache-2.0"
depends="
py3-portalocker
"
makedepends="
py3-setuptools
py3-gpep517
py3-wheel
py3-hatchling
"
checkdepends="py3-pytest"
source="$pkgname-$pkgver-gh.tar.gz::https://github.com/Preston-Landers/concurrent-log-handler/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
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 -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
59dd009712445115634e854c9f3738dc0f3893d8bb150b5edfcc0705e00e84fd2515720ad33f82687f60d9855709f69ba838af3729bed2bd0d5759fb604e216e py3-concurrent-log-handler-0.9.26-gh.tar.gz
"