mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +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.
33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
pkgname=py3-pytest-console-scripts
|
|
pkgver=1.3.1
|
|
pkgrel=0
|
|
pkgdesc="Pytest plugin for testing console scripts"
|
|
url="https://github.com/kvas-it/pytest-console-scripts"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-pytest"
|
|
makedepends="py3-setuptools py3-setuptools_scm"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/5a/2f/47afcacbe804735fef894d94e0a2e7848a1f488a8da74ac9ded81e7ac371/pytest-console-scripts-$pkgver.tar.gz"
|
|
builddir="$srcdir/pytest-console-scripts-$pkgver"
|
|
|
|
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 fails on script launch in venv, more investigation needed
|
|
test-env/bin/python3 -m pytest \
|
|
--deselect tests/test_run_scripts.py::test_run_pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
344e9379976d9a7541f9683f7646b47f7fc25d2ab8d941351811ada7fddd77497cc24f4bc6a6d5ab9388dd5b289ed125bcbfad869009fb3b80aaaa1b951d656d py3-pytest-console-scripts-1.3.1.tar.gz
|
|
"
|