mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 20:46:39 +02:00
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-venusian
|
|
_pkgname=venusian
|
|
pkgver=3.1.1
|
|
pkgrel=0
|
|
pkgdesc="A Python library for deferring decorator actions"
|
|
url="https://pypi.org/project/venusian"
|
|
arch="noarch"
|
|
license="BSD-4-Clause"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
replaces="py-venusian" # Backwards compatibility
|
|
provides="py-venusian=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
prepare() {
|
|
default_prepare
|
|
sed -i '/addopts = -W always --cov --cov-report=term-missing/d' setup.cfg
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
99f4544563486dcb86b6f9b56a0f111ed2d844c4b2caee977273074016b91059b08c37340c6167b5b78dcf91b673b7423688ce93535e3f1a8007004d6348b9b2 venusian-3.1.1.tar.gz
|
|
"
|