mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-pytest-subprocess: upgrade to 1.5.2, build with gpep517
This commit is contained in:
parent
8d0b411749
commit
42da31a469
@ -1,14 +1,14 @@
|
||||
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
||||
pkgname=py3-pytest-subprocess
|
||||
_pyname=${pkgname#py3-}
|
||||
pkgver=1.5.0
|
||||
pkgrel=2
|
||||
pkgver=1.5.2
|
||||
pkgrel=0
|
||||
pkgdesc="Pytest plugin to fake subprocess"
|
||||
url="https://github.com/aklajnert/pytest-subprocess"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3 py3-pytest"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="
|
||||
py3-anyio
|
||||
py3-docutils
|
||||
@ -21,20 +21,22 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/aklajnert/pytest-subprocess/
|
||||
builddir="$srcdir/$_pyname-$pkgver"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
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 setup.py install
|
||||
test-env/bin/python3 -m pytest \
|
||||
-W "ignore:There is no current event loop:DeprecationWarning"
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
8489993cc396d41d127927ab46a43120528dbcb9641e7be03777689af127df29fe618eee3a815e96a0353cc02117dc1af22800d748476c4fe2b76c2246229f08 py3-pytest-subprocess-1.5.0.tar.gz
|
||||
56bf95ee085e74df1b9691d23a1e766de304896a74fb319df22dbb3faa6e4959fe9b7e790cd65a55c816fb39f3ae8db68bd501aeaade0db498a7273cd7267e45 py3-pytest-subprocess-1.5.2.tar.gz
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user