Date: Wednesday, April 5, 2023 @ 19:19:17
Author: felixonmars
Revision: 1437955
archrelease: copy trunk to community-staging-any
Added:
python-executing/repos/community-staging-any/
python-executing/repos/community-staging-any/PKGBUILD
(from rev 1437953, python-executing/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-executing/repos/community-staging-any/PKGBUILD (from rev
1437953, python-executing/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 19:19:17 UTC (rev 1437955)
@@ -0,0 +1,41 @@
+# Maintainer: Daniel M. Capella <[email protected]>
+
+_name=executing
+pkgname=python-executing
+pkgver=1.2.0
+pkgrel=2
+pkgdesc='Get the currently executing AST node of a frame, and other
information'
+arch=('any')
+url=https://github.com/alexmojaki/executing
+license=('MIT')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
+ 'python-wheel')
+checkdepends=('python-asttokens' 'python-littleutils' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('19da64c18d2d851112f09c287f8d3dbbdf725ab0e569077efb6cdcbd3497c107')
+b2sums=('662048e98a1eb3128dd57bbd61a8b7d7fb90dcf5adabc532c69f9ecce2a8ca73cf496ce7ba9b19c94d40083be1382b59dd673b36840e004a7cd0add888292ada')
+
+build() {
+ cd "$_name-$pkgver"
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd "$_name-$pkgver"
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ test-env/bin/python tests/test_main.py
+ test-env/bin/python -m pytest tests/test_pytest.py
+}
+
+package() {
+ cd "$_name-$pkgver"
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE.txt \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}