mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 02:05:16 +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.
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# Contributor: prspkt <prspkt@protonmail.com>
|
|
# Maintainer: prspkt <prspkt@protonmail.com>
|
|
pkgname=py3-lazy-object-proxy
|
|
_pkgname=lazy-object-proxy
|
|
pkgver=1.9.0
|
|
pkgrel=0
|
|
pkgdesc="Fast and thorough lazy object proxy"
|
|
url="https://github.com/ionelmc/python-lazy-object-proxy"
|
|
arch="all"
|
|
license="BSD-2-Clause"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm python3-dev py3-wheel"
|
|
checkdepends="py3-pytest-runner py3-pytest-benchmark"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/"$_pkgname-$pkgver
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/lazy*.whl
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/lazy*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2168254a71cf52ef406e5edf4653b9c8ae05392d4ad3c2e5e8e9f8db56152d968a77d14226acdf7d962f66d460c40add335615442f6f176d697c071f9cb137f5 lazy-object-proxy-1.9.0.tar.gz
|
|
"
|