mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 12:45:18 +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.
32 lines
1.1 KiB
Text
32 lines
1.1 KiB
Text
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-pytest-helpers-namespace
|
|
pkgver=2021.12.29
|
|
pkgrel=0
|
|
pkgdesc="Pytest Helpers Namespace Plugin"
|
|
url="https://pytest-helpers-namespace.readthedocs.io/"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3 py3-pytest"
|
|
makedepends="py3-setuptools py3-setuptools_scm py3-setuptools-declarative-requirements"
|
|
source="https://github.com/saltstack/pytest-helpers-namespace/archive/refs/tags/v$pkgver/py3-pytest-helpers-namespace-$pkgver.tar.gz"
|
|
builddir="$srcdir/pytest-helpers-namespace-$pkgver"
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages test-env
|
|
test-env/bin/python3 setup.py install
|
|
test-env/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
82c231ff11a36fce7b16a0ceea51c9306f7e05ca3f9e8cc7cc1c77ac9822f974d1ac893d2bf9b7154bf9593a529193daa041ccaaced6fdd9e38ba4f794f161b0 py3-pytest-helpers-namespace-2021.12.29.tar.gz
|
|
"
|