aports/testing/py3-jaraco.versioning/APKBUILD
2024-05-12 21:27:14 +00:00

37 lines
1.1 KiB
Text

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-jaraco.versioning
pkgver=1.1.0
pkgrel=0
pkgdesc="Jaraco versioning module"
url="https://github.com/jaraco/jaraco.versioning"
arch="noarch"
license="MIT"
depends="py3-packaging"
makedepends="py3-gpep517 py3-installer py3-setuptools_scm py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jaraco/jaraco.versioning/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/jaraco.versioning-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
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="
36567a7d95f07ea470ad3a637758865451e6d17d50e05504755333f8ded037d7876573929063e3a7a506a07620ae4c4ded581108a9ae43ef5b8e8aa17271a437 py3-jaraco.versioning-1.1.0.tar.gz
"