1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/py3-pytest-xprocess/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

33 lines
1,002 B
Text

# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-pytest-xprocess
pkgver=0.22.2
pkgrel=0
pkgdesc="pytest external process plugin"
url="https://github.com/pytest-dev/pytest-xprocess"
arch="noarch"
license="MIT"
depends="python3 py3-psutil py3-pytest py3-py"
makedepends="py3-gpep517 py3-setuptools_scm py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-xprocess/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/pytest-xprocess-$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/*.whl
}
sha512sums="
db3312175d0e94a28c0539eb11d0997eda8e044f2b1ed5cda145c0c936df06bd64f7b414eeefa8d801dd913d83b2227de4f1114fa9d29c89582d507593292408 py3-pytest-xprocess-0.22.2.tar.gz
"