Date: Wednesday, March 1, 2023 @ 10:00:19
  Author: felixonmars
Revision: 1405812

upgpkg: python-argh 0.28.1-1

Modified:
  python-argh/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-01 09:58:03 UTC (rev 1405811)
+++ PKGBUILD    2023-03-01 10:00:19 UTC (rev 1405812)
@@ -2,8 +2,8 @@
 # Contributor: Francois Boulogne <fboulogne at april dot org>
 
 pkgname=python-argh
-pkgver=0.27.2
-_commit=2c78bd029bec38c06e3df7510c27b4e23274ae2b
+pkgver=0.28.1
+_commit=1872281cce5d554a0ce3c340e24261a7741712cc
 pkgrel=1
 pkgdesc="An unobtrusive argparse wrapper with natural syntax"
 arch=(any)
@@ -10,24 +10,23 @@
 url="https://pypi.python.org/pypi/argh";
 license=('LGPL3')
 depends=('python')
-makedepends=('git' 'python-setuptools')
-checkdepends=('python-pytest' 'python-iocapture')
+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 setup.py build
+  python -m build -nw
 }
 
 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
+  PYTHONPATH=src pytest
 }
 
 package() {
   cd argh
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer -d "$pkgdir" dist/*.whl
 }

Reply via email to