mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +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.
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-build
|
|
_pkgname=build
|
|
pkgver=0.10.0
|
|
pkgrel=0
|
|
pkgdesc="Correct PEP517 package builder"
|
|
url="https://github.com/pypa/build"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-packaging py3-pyproject-hooks"
|
|
makedepends="py3-wheel py3-flit-core py3-gpep517 py3-installer py3-pyproject-hooks"
|
|
source="https://files.pythonhosted.org/packages/source/b/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
replaces=py-build # Backwards compatibility
|
|
provides=py-build=$pkgver-r$pkgrel # Backwards compatibility
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
# Test suite is not shipped at the moment
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages test-env
|
|
test-env/bin/python3 -m installer dist/build*.whl
|
|
test-env/bin/python3 -m build --version
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/build*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
7278b570fa1e1eb6e6d4c04298eee2917311a29f0d6e1497945f00b7d1028c4d932b3d74a533ef6aaa46d7d3f140dd7e5b3781c5fd62f5f828ed227d5ff77565 build-0.10.0.tar.gz
|
|
"
|