diff --git a/backports/py3-pyinstrument/APKBUILD b/backports/py3-pyinstrument/APKBUILD index 50f4f80..e4ab2cf 100644 --- a/backports/py3-pyinstrument/APKBUILD +++ b/backports/py3-pyinstrument/APKBUILD @@ -1,18 +1,29 @@ # Contributor: Aiden Grossman -# Maintainer: Aiden Grossman +# Maintainer: Celeste +maintainer="Celeste " pkgname=py3-pyinstrument -pkgver=4.6.2 -pkgrel=1 +pkgver=4.7.3 +pkgrel=0 pkgdesc="Call stack profiler for Python" url="https://github.com/joerick/pyinstrument" arch="all" license="BSD-3-Clause" -makedepends="py3-gpep517 py3-setuptools py3-wheel python3-dev" -checkdepends="py3-pytest py3-flaky py3-trio py3-greenlet" +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel + python3-dev + " +checkdepends=" + py3-flaky + py3-greenlet + py3-pytest + py3-pytest-asyncio + py3-trio + " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/joerick/pyinstrument/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/pyinstrument-$pkgver" -options="!check" # currently not working build() { gpep517 build-wheel \ @@ -21,9 +32,13 @@ build() { } check() { + [ -d "pyinstrument" ] && mv -v pyinstrument pyinstrument.src + python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl - .testenv/bin/python3 -m pytest + + # test_cmdline.py tries to run "pyinstrument" executable + PATH="$builddir/.testenv/bin:$PATH" .testenv/bin/python3 -m pytest } package() { @@ -31,5 +46,5 @@ package() { } sha512sums=" -da23988e6c68876cb8920ce284326f349425303ae36718c5c479b72b5f5ca5d48ced1674bcab71851f60e81a0985bb668bfa89a8b96cc20a1faa0dd7e623ec50 py3-pyinstrument-4.6.2.tar.gz +24feac08a9726379b749f391bdb6ddbca6d3631cf3515d3ead85ace7a96f213bf60e2cd4d4f3c7cade68b5e481b4bfd562482817befe6322579101a8d91add66 py3-pyinstrument-4.7.3.tar.gz "