mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 18:26:39 +02:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-pbs-installer
|
|
pkgver=2024.12.19
|
|
pkgrel=0
|
|
pkgdesc="Installer for Python Build Standalone"
|
|
url="https://github.com/frostming/pbs-installer"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="py3-gpep517 py3-pdm-backend"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/frostming/pbs-installer/archive/$pkgver/py3-pbs-installer-$pkgver.tar.gz"
|
|
builddir="$srcdir/pbs-installer-$pkgver"
|
|
options="!check" # tests/ directory empty
|
|
|
|
build() {
|
|
export PDM_BUILD_SCM_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="
|
|
481ce48d4ba823d13e6c488aa146725e7406baf7f1d42a8561273d69311174e032930fa5d4d9c4f6edd3ce9ea866320e0266763a2b8b8456ed2f052149eb892a py3-pbs-installer-2024.12.19.tar.gz
|
|
"
|