Date: Saturday, April 8, 2023 @ 06:13:04
  Author: felixonmars
Revision: 1441948

archrelease: copy trunk to community-staging-any

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

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

Copied: python-cli_helpers/repos/community-staging-any/PKGBUILD (from rev 
1441945, python-cli_helpers/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 06:13:04 UTC (rev 1441948)
@@ -0,0 +1,55 @@
+# Maintainer: George rawlinson <[email protected]>
+# Contributor: fzerorubigd <[email protected]>
+
+pkgname=python-cli_helpers
+pkgver=2.3.0
+pkgrel=2
+pkgdesc='Python helpers for common CLI tasks'
+arch=('any')
+url='https://github.com/dbcli/cli_helpers'
+license=('BSD')
+depends=(
+  'python'
+  'python-tabulate'
+  'python-configobj'
+)
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
+checkdepends=('python-pytest')
+optdepends=('python-pygments: for styles extras')
+_commit='58c7d280338748a6de6317a5e7d3104b6a27b8fb'
+source=("$pkgname::git+https://github.com/dbcli/cli_helpers.git#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 \
+    --deselect 
tests/tabular_output/test_tabulate_adapter.py::test_tabulate_wrapper
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Reply via email to