1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/py3-jaraco.test/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

44 lines
1 KiB
Text

# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-jaraco.test
pkgver=5.3.0
pkgrel=0
pkgdesc="jaraco test module"
url="https://github.com/jaraco/jaraco.test"
arch="noarch"
license="MIT"
depends="
py3-jaraco.functools
py3-jaraco.context
python3
"
makedepends="
py3-gpep517
py3-setuptools
py3-setuptools_scm
py3-wheel
"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/jaraco/jaraco.test/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/jaraco.test-$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/*.whl
testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/jaraco*.whl
}
sha512sums="
a2fe426aeb5e9eec58d6bd86e6db7267a353e3543e4f27c70ece30ecd2e17cae5f99bbe7d1c5e3f02a05397c7cc9c3ef4f093386d3e92f7f09ab1fda1710672c py3-jaraco.test-5.3.0.tar.gz
"