mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
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.
35 lines
1.1 KiB
Text
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
|
|
"
|