mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +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.
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
pkgname=py3-pytest-tornasync
|
|
_pkgver=0.5.0
|
|
pkgver=${_pkgver}_git20220715
|
|
_commitid=9f1bdeec3eb5816e0183f975ca65b5f6f29fbfbb
|
|
pkgrel=1
|
|
pkgdesc="Pytest plugin for testing tornado"
|
|
url="https://github.com/eukaryote/pytest-tornasync"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-tornado"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
source="$pkgname-$_commitid.tar.gz::https://github.com/eukaryote/pytest-tornasync/archive/$_commitid.tar.gz"
|
|
builddir="$srcdir/pytest-tornasync-$_commitid"
|
|
options="!check" # tests are not functional
|
|
|
|
build() {
|
|
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="
|
|
6da6b0b5495194835cfc43ef28188993fb91b75c389fb7f00c279cbb91259867e880eeb6e08bab0469ce07940ffff195f5b8e407a5128737af3eb46fe89e446f py3-pytest-tornasync-9f1bdeec3eb5816e0183f975ca65b5f6f29fbfbb.tar.gz
|
|
"
|