mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-28 04:42:14 +01:00
43 lines
991 B
Plaintext
43 lines
991 B
Plaintext
maintainer="fossdd <fossdd@pwned.life>"
|
|
pkgname=py3-findpython
|
|
pkgver=0.7.0
|
|
pkgrel=0
|
|
pkgdesc="Utility to find python versions on your system"
|
|
url="https://github.com/frostming/findpython/"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="
|
|
py3-packaging
|
|
py3-platformdirs
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-pdm-backend
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/frostming/findpython/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/findpython-$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="
|
|
1e9ea0c53d818f4b091f4713adbd84d37d03fbb326ad12120bcca114a8d38dd698d71dad42336291f48ecdde0bffc3c28b1b8e901d3819d33b2f2f33349207be py3-findpython-0.7.0.tar.gz
|
|
"
|