1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-pyproject-hooks/APKBUILD
psykose b71032c356 */*: invoke -m venv with --without-pip
we never use pip in the venv manually made for tests-
this might break 1-2 things unexpectedly, but

- those should be looked at anyway
- this has a severe speedup- even on a desktop machine with nvme, this
  makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small
  optimisation.
2023-02-09 22:55:20 +01:00

35 lines
1.1 KiB
Text

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-pyproject-hooks
pkgver=1.0.0
pkgrel=0
pkgdesc="Low-level library for calling build-backends in 'pyproject.toml'-based project"
url="https://pyproject-hooks.readthedocs.io/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-installer py3-flit-core"
checkdepends="py3-pytest py3-testpath"
source="https://github.com/pypa/pyproject-hooks/archive/refs/tags/v$pkgver/py3-pyproject-hooks-$pkgver.tar.gz"
builddir="$srcdir/pyproject-hooks-$pkgver"
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/pyproject_hooks*.whl
test-env/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/pyproject_hooks*.whl
}
sha512sums="
fca9b69859d7e3949b158c2879ba7ebc7305f1edaacdd84b71a92565010176d1194be03a21fd6b9aa65d175cfd8243ba3a50aab617fb56ceac6b263da6613e17 py3-pyproject-hooks-1.0.0.tar.gz
"