mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 18:56:47 +02:00
36 lines
1,008 B
Text
36 lines
1,008 B
Text
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-dunamai
|
|
pkgver=1.23.1
|
|
pkgrel=0
|
|
pkgdesc="Dynamic versioning library and CLI"
|
|
url="https://github.com/mtkennerly/dunamai"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-packaging"
|
|
makedepends="py3-gpep517 py3-poetry-core py3-wheel py3-installer"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/mtkennerly/dunamai/releases/download/v$pkgver/dunamai-$pkgver.tar.gz"
|
|
builddir="$srcdir/dunamai-$pkgver"
|
|
options="!check" # tests require a git repo
|
|
|
|
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
|
|
}
|
|
|
|
sha512sums="
|
|
8d69a74c9dbbe247687869da10084e9d2783d40a76e4fa0089c60b575e222da29be64a247bb398ef32be319c34b7682d286f783006d6bed7e01f942db916fc3b dunamai-1.23.1.tar.gz
|
|
"
|