aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptrcnull <git@ptrcnull.me>2022-09-23 00:25:04 +0200
committeralice <alice@ayaya.dev>2022-09-22 22:30:00 +0000
commit5c08958d53811471632cf9239fcee8d4b71557f8 (patch)
treea54fb0341a099c337a4753f433b32b5b4959405e
parenteed9896771fc1ed1d8787afce17acf3325b571e3 (diff)
downloadaports-5c08958d53811471632cf9239fcee8d4b71557f8.tar.gz
aports-5c08958d53811471632cf9239fcee8d4b71557f8.tar.bz2
aports-5c08958d53811471632cf9239fcee8d4b71557f8.tar.xz
community/py3-pytest-asyncio: upgrade to 0.19.0
-rw-r--r--community/py3-pytest-asyncio/APKBUILD18
1 files changed, 11 insertions, 7 deletions
diff --git a/community/py3-pytest-asyncio/APKBUILD b/community/py3-pytest-asyncio/APKBUILD
index 583c07f58d..a2dd107de3 100644
--- a/community/py3-pytest-asyncio/APKBUILD
+++ b/community/py3-pytest-asyncio/APKBUILD
@@ -1,32 +1,36 @@
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-pytest-asyncio
-pkgver=0.18.3
+pkgver=0.19.0
pkgrel=0
pkgdesc="Pytest support for asyncio"
url="https://github.com/pytest-dev/pytest-asyncio"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-flaky py3-pytest py3-pytest-trio"
-makedepends="py3-setuptools py3-setuptools_scm"
+makedepends="py3-setuptools py3-setuptools_scm py3-gpep517 py3-installer py3-wheel"
checkdepends="py3-async_generator py3-coverage py3-hypothesis"
-options="!check" # doesn't find its own modules
source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-asyncio/archive/v$pkgver.tar.gz"
builddir="$srcdir/pytest-asyncio-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
- python3 setup.py build
+ python3 -m gpep517 build-wheel \
+ --wheel-dir dist \
+ --output-fd 1
}
check() {
- PYTHONPATH="$PWD/build/lib" py.test-3
+ python3 -m venv --system-site-packages test-env
+ test-env/bin/python3 -m installer dist/pytest_asyncio-*.whl
+ test-env/bin/python3 -m pytest
}
package() {
- python3 setup.py install --prefix=/usr --root="$pkgdir"
+ python3 -m installer -d "$pkgdir" \
+ dist/pytest_asyncio-*.whl
}
sha512sums="
-04d2046c039131598cb593afc1908be0dff2b24a91c89f36fca75d2d65916571e48fe149c1ba90244f299586277320cf6f130a02824fde9ee0a4d2429bf58a54 py3-pytest-asyncio-0.18.3.tar.gz
+7be87e6edd28496713ae5cca396fed67d372f2882dd573a8b72a84ebf6d262060cda9372bcde601130c42fc27faf15cf292cd820995ea93a324c209f203e823f py3-pytest-asyncio-0.19.0.tar.gz
"