mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-15 20:25:17 +03:00
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
|
|
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
|
|
pkgname=py3-pytest-repeat
|
|
_pyname=pytest-repeat
|
|
pkgver=0.9.1
|
|
pkgrel=0
|
|
pkgdesc="pytest plugin for repeating tests"
|
|
url="https://github.com/pytest-dev/pytest-repeat"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
py3-pytest
|
|
python3
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-wheel
|
|
py3-setuptools
|
|
"
|
|
checkdepends="py3-tox"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-repeat/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
|
|
build() {
|
|
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
|
|
rm -rf "$pkgdir"/usr/lib/python3.*/site-packages/tests/ # remove tests
|
|
}
|
|
|
|
sha512sums="
|
|
6820712ef0aeb03a5147e3f025d1ea6024c970b3027fb9f698f7ccadea83bbf9f1871e0b8ee3ca0bf4daece5f498a7f5016bca1b5816f535593521073ab8fb6b py3-pytest-repeat-0.9.1.tar.gz
|
|
"
|