# Maintainer: Patrycja Rosa pkgname=py3-dunamai pkgver=1.18.0 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=" 895d29ed8d0a687a7a38b75c90386c13de64cd2216b8d9745b35a3aead17dec17638ad51d098881c5e72ea9710d7d666fe47fc6e35e15b963c6352303b1a81b2 dunamai-1.18.0.tar.gz "