# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=py3-executing pkgver=2.2.0 pkgrel=0 pkgdesc="Get information about what a Python frame is currently doing" url="https://github.com/alexmojaki/executing" arch="noarch" license="MIT" depends="python3" makedepends="py3-gpep517 py3-setuptools_scm py3-wheel" checkdepends="ipython py3-asttokens py3-littleutils py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/alexmojaki/executing/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/executing-$pkgver" options="!check" # circular dependency: ipython -> py3-stack_data -> itself build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver 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() { local whl=.dist/executing-$pkgver-py2.py3-none-any.whl python3 -m installer --destdir="$pkgdir" "$whl" } sha512sums=" e8f6a399e57519149a15ae84c1d4a01c7cd6fdb81415939ef66f19a4abd9bf2ddbb156a9f59e95328a26504b8f8775a48e8da44af2027dd4763071b1997b8b84 py3-executing-2.2.0.tar.gz "