1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/py3-hatch-vcs/APKBUILD
Duncan Bellamy 747d03d1b3 community/py3-hatch-vcs: run tests in venv
* add patch for new setuptools 7.1 47364faf55
2023-02-24 19:38:57 +00:00

37 lines
1.3 KiB
Text

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-hatch-vcs
pkgver=0.3.0
pkgrel=1
pkgdesc="Hatch plugin for versioning with your preferred VCS"
url="https://github.com/ofek/hatch-vcs"
arch="noarch"
license="MIT"
depends="python3 py3-hatchling py3-setuptools_scm"
makedepends="py3-gpep517 py3-installer py3-wheel"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/h/hatch-vcs/hatch_vcs-$pkgver.tar.gz
$pkgname-$pkgver-scm.patch::https://github.com/ofek/hatch-vcs/commit/47364faf5563df0eaa631ed10383817762c6b547.patch
"
builddir="$srcdir/hatch_vcs-$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
}
package() {
python3 -m installer -d "$pkgdir" dist/*.whl
}
sha512sums="
06a80e90b45b1316b42845808d04d00d00356f42d32f02d934db0aa9df05efa2f692413709e0dd5465f447829f2f5410110fbbeb826bafdea1f1014e3096e056 hatch_vcs-0.3.0.tar.gz
7107595de0302e0da9221f0dea01849ec12f7ad794bce9d885384ccc0e542a1c4ee5e20fa79d3375cc1fbca45688a23ee677bebe6f026cf9ac6cd454fb970159 py3-hatch-vcs-0.3.0-scm.patch
"