mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-13 10:24:46 +02:00
46 lines
1.1 KiB
Text
46 lines
1.1 KiB
Text
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
# Maintainer: Peter Shkenev <santurysim@gmail.com>
|
|
pkgname=py3-wheel
|
|
pkgver=0.46.1
|
|
pkgrel=0
|
|
pkgdesc="built-package format for Python"
|
|
url="https://github.com/pypa/wheel"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-packaging"
|
|
makedepends="
|
|
py3-flit-core
|
|
py3-gpep517
|
|
"
|
|
checkdepends="py3-pytest py3-setuptools python3-dev"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/w/wheel/wheel-$pkgver.tar.gz"
|
|
builddir="$srcdir"/wheel-$pkgver
|
|
options="!check" # circular with pytest
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
rm -rf src/wheel/vendored
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages test-env
|
|
test-env/bin/python3 -m installer .dist/*.whl
|
|
test-env/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
69219fb100d47da42999e0d0e4a023ac43489eb7f1755cb08f6d72a26bda1d435b3a9738340379b1a7f0054330711c7ca9865736cb0463a3f49004c25b61ebfe wheel-0.46.1.tar.gz
|
|
"
|