mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 18:55:29 +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.2 KiB
Text
37 lines
1.2 KiB
Text
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
|
|
pkgname=py3-pytest-asyncio
|
|
pkgver=0.20.3
|
|
pkgrel=1
|
|
pkgdesc="Pytest support for asyncio"
|
|
url="https://github.com/pytest-dev/pytest-asyncio"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3 py3-pytest"
|
|
makedepends="py3-setuptools py3-setuptools_scm py3-gpep517 py3-installer py3-wheel"
|
|
checkdepends="py3-async_generator py3-coverage py3-hypothesis py3-flaky py3-pytest-trio"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-asyncio/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/pytest-asyncio-$pkgver"
|
|
options="!check" # fail for some reason
|
|
|
|
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 test-env
|
|
test-env/bin/python3 -m installer dist/pytest_asyncio-*.whl
|
|
test-env/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/pytest_asyncio-*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
78a6e251db80696d6f62a54c8d6836e2a820f27efdaa848eb1be512a1592d3bd3fb7c7eee46bb2039a317a8d431565614c888f8436fbe0d4eb60534ce4780e90 py3-pytest-asyncio-0.20.3.tar.gz
|
|
"
|