[arch-commits] Commit in python-executing/repos (community-any community-any/PKGBUILD)

Daniel M. Capella polyzen at gemini.archlinux.org
Thu Jan 13 03:38:59 UTC 2022


    Date: Thursday, January 13, 2022 @ 03:38:58
  Author: polyzen
Revision: 1101789

archrelease: copy trunk to community-any

Added:
  python-executing/repos/community-any/
  python-executing/repos/community-any/PKGBUILD
    (from rev 1101788, python-executing/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: python-executing/repos/community-any/PKGBUILD (from rev 1101788, python-executing/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-01-13 03:38:58 UTC (rev 1101789)
@@ -0,0 +1,43 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=executing
+pkgname=python-executing
+pkgver=0.8.2
+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-install' 'python-setuptools-scm'
+             'python-wheel')
+checkdepends=('python-asttokens' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('c23bf42e9a7b9b212f185b1b2c3c91feb895963378887bb10e64a2e612ec0023')
+b2sums=('2e966b8f2248af7be2f4c329cf2a04a9ca49fef785c0fb3c5c3280586dee28f737b78902cdd5a2ef3de61a7864df8760cd78386004f602d439035437a9237870')
+
+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 install --optimize=1 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 install --optimize=1 --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 \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list