Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions extra/python3-distlib/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Alpine-Contributor: Leo <[email protected]>
# Alpine-Maintainer: Peter Shkenev <[email protected]>
# Maintainer: Ethan Leir <[email protected]>
pkgname=python3-distlib
pkgver=0.4.0
pkgrel=0
pkgdesc="Distribution utilities"
url="https://github.com/pypa/distlib"
arch="noarch"
license="PSF-2.0"
depends="python3"
makedepends="python3-gpep517 python3-setuptools python3-wheel"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/pypa/distlib/archive/refs/tags/$pkgver.tar.gz
"
builddir="$srcdir/distlib-$pkgver"

options="!check" # One failure, doesn't look like it supports python3.14

build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}

check() {
PYTHONHASHSEED=0 SKIP_ONLINE=1 python3 -m unittest discover tests
}

package() {
python3 -m installer -d "$pkgdir" \
.dist/distlib*.whl

rm "$pkgdir"/usr/lib/python3*/site-packages/distlib/*.exe
}

sha512sums="
ff61f9ab4e38061d5fee3168c8b26c741a21403d793476477e0733b28b2ba5b1fb31ae6ddb5275efe7ad6936b7e79a5e7ec1b160c86bfbfe6b4ecff10e0193d2 python3-distlib-0.4.0.tar.gz
"