aports/main/py3-setuptools_scm/APKBUILD
2025-03-16 19:45:28 +00:00

41 lines
1.4 KiB
Text

# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=py3-setuptools_scm
_pkgname=setuptools-scm
pkgver=8.2.0
pkgrel=0
pkgdesc="The blessed package to manage your versions by scm tags"
url="https://github.com/pypa/setuptools_scm"
arch="noarch"
license="MIT"
depends="py3-setuptools py3-packaging"
makedepends="py3-gpep517 py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pypa/setuptools-scm/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # here -> pytest -> pluggin -> here
replaces="py-setuptools_scm" # Backwards compatibility
provides="py-setuptools_scm=$pkgver-r$pkgrel" # Backwards compatibility
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
TZ=UTC .testenv/bin/python3 -m pytest -k 'not test_pip_download and not test_pyproject_support_with_git and not test_pretend_version_named_pyproject_integration'
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
fcef2d3b005f470ccbc674a7aae5ba1b88247041afb292f51a0d58cb87d66d2a9a0a97daa0c7bf214e13aa363055e82668517871e5fc31d1303e81b3ff2b3571 py3-setuptools_scm-8.2.0.tar.gz
"