1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00
aports/community/py3-coverage-conditional-plugin/APKBUILD
2025-07-06 00:18:48 +02:00

51 lines
1.4 KiB
Text

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-coverage-conditional-plugin
_pyname=coverage-conditional-plugin
pkgver=0.9.0
pkgrel=0
pkgdesc="Conditional coverage based on any rules you define!"
url="https://github.com/wemake-services/coverage-conditional-plugin"
arch="noarch"
license="MIT"
depends="
py3-coverage
"
makedepends="
py3-setuptools
py3-gpep517
poetry
"
checkdepends="
py3-pytest
py3-pytest-cov
py3-pytest-randomly
"
subpackages="$pkgname-pyc"
source="
$pkgname-$pkgver.tar.gz::https://github.com/wemake-services/coverage-conditional-plugin/archive/refs/tags/$pkgver.tar.gz
py-312-313-support.patch
"
builddir="$srcdir"/$_pyname-$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 -v
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
4cd28a3eb8f3cf3314df91a4316759eb4990b76ac7f78a81b5b2833cbf530fd0610a189177d375c75d20ca1f15b8425c3e05c3463538919e88d9a75c134b78be py3-coverage-conditional-plugin-0.9.0.tar.gz
cfb991cb144dd6ea360c23adda1f49bbfd3d3b3fa2218879e9e030fb0124cc79b11211e56be9107c048bd605e644dbb05998d717f4f37dc075fe085c3338c6af py-312-313-support.patch
"