mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 01:02:26 +01:00
43 lines
1001 B
Plaintext
43 lines
1001 B
Plaintext
maintainer="Achill Gilgenast <achill@achill.org>"
|
|
pkgname=py3-findpython
|
|
pkgver=0.7.1
|
|
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="
|
|
b469fc9a622606fc1d392d7358e485322945ff4bf1d5ca13f44e8ae7bd77a12e7b95db1e1e1f98ddd3c4ed8fcc2164de5d763b3a64499a68ac58c0b93f6dcbd5 py3-findpython-0.7.1.tar.gz
|
|
"
|