Date: Wednesday, March 1, 2023 @ 10:00:32
  Author: felixonmars
Revision: 1405813

archrelease: copy trunk to community-any

Added:
  python-argh/repos/community-any/PKGBUILD
    (from rev 1405812, python-argh/trunk/PKGBUILD)
Deleted:
  python-argh/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   65 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 32 insertions(+), 33 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-01 10:00:19 UTC (rev 1405812)
+++ PKGBUILD    2023-03-01 10:00:32 UTC (rev 1405813)
@@ -1,33 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: Francois Boulogne <fboulogne at april dot org>
-
-pkgname=python-argh
-pkgver=0.27.2
-_commit=2c78bd029bec38c06e3df7510c27b4e23274ae2b
-pkgrel=1
-pkgdesc="An unobtrusive argparse wrapper with natural syntax"
-arch=(any)
-url="https://pypi.python.org/pypi/argh";
-license=('LGPL3')
-depends=('python')
-makedepends=('git' 'python-setuptools')
-checkdepends=('python-pytest' 'python-iocapture')
-source=("git+https://github.com/neithere/argh.git#commit=$_commit";)
-sha256sums=('SKIP')
-
-build() {
-  cd argh
-  python setup.py build
-}
-
-check() {
-  cd argh
-  # https://github.com/neithere/argh/issues/148#issuecomment-981508602
-  pytest --deselect test/test_integration.py::test_invalid_choice \
-         --deselect test/test_integration.py::test_explicit_cmd_name
-}
-
-package() {
-  cd argh
-  python setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-argh/repos/community-any/PKGBUILD (from rev 1405812, 
python-argh/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-03-01 10:00:32 UTC (rev 1405813)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Francois Boulogne <fboulogne at april dot org>
+
+pkgname=python-argh
+pkgver=0.28.1
+_commit=1872281cce5d554a0ce3c340e24261a7741712cc
+pkgrel=1
+pkgdesc="An unobtrusive argparse wrapper with natural syntax"
+arch=(any)
+url="https://pypi.python.org/pypi/argh";
+license=('LGPL3')
+depends=('python')
+optdepends=('python-argcomplete: for completion')
+makedepends=('git' 'python-build' 'python-installer' 'python-flit-core')
+checkdepends=('python-pytest' 'python-argcomplete' 'python-iocapture')
+source=("git+https://github.com/neithere/argh.git#commit=$_commit";)
+sha256sums=('SKIP')
+
+build() {
+  cd argh
+  python -m build -nw
+}
+
+check() {
+  cd argh
+  PYTHONPATH=src pytest
+}
+
+package() {
+  cd argh
+  python -m installer -d "$pkgdir" dist/*.whl
+}

Reply via email to