Date: Friday, April 7, 2023 @ 02:05:35
  Author: grawlinson
Revision: 1440352

archrelease: copy trunk to community-staging-any

Added:
  python-shtab/repos/community-staging-any/
  python-shtab/repos/community-staging-any/PKGBUILD
    (from rev 1440351, python-shtab/trunk/PKGBUILD)

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

Copied: python-shtab/repos/community-staging-any/PKGBUILD (from rev 1440351, 
python-shtab/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 02:05:35 UTC (rev 1440352)
@@ -0,0 +1,53 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: SZanko, szanko at protonmail dot com
+
+pkgname=python-shtab
+pkgver=1.6.0
+pkgrel=1
+pkgdesc='Automagic shell tab completion for Python CLI applications'
+arch=('any')
+url='https://github.com/iterative/shtab'
+license=('Apache')
+depends=('python')
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools-scm'
+)
+checkdepends=(
+  'python-pytest'
+  'python-pytest-cov'
+  'python-pytest-timeout'
+)
+_commit='68ac16999be08cf5033c601f162020bde4aaf0ad'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$pkgname"
+
+  pytest -v
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENCE
+}

Reply via email to