git » python-shtab.git » commit 0362b43

Update to 1.5.4

author Antonio Rojas
2022-04-27 20:16:49 UTC
committer Antonio Rojas
2022-04-27 20:16:49 UTC
parent afee8353f5c4ada0a25c10f3d047022136fcb37b

Update to 1.5.4

PKGBUILD +8 -8

diff --git a/PKGBUILD b/PKGBUILD
index 4fa3af6..f0e14bd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,30 +3,30 @@
 
 _pkgname=shtab
 pkgname=python-${_pkgname}
-pkgver=1.5.3
+pkgver=1.5.4
 pkgrel=1
 pkgdesc='Automagic shell tab completion for Python CLI applications'
 arch=(any)
 url='https://github.com/iterative/shtab'
 license=(Apache)
 depends=(python)
-makedepends=(python-setuptools-scm python-wheel)
+makedepends=(python-build python-installer python-setuptools-scm python-wheel)
+checkdepends=(python-pytest-cov python-pytest-timeout)
 source=(https://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname/-/_}/${_pkgname/-/_}-${pkgver}.tar.gz)
-sha256sums=('4cdb7b9aa6a0eb48de8820a51b8dccb119e9c8c0d8ce2d666b10e4535df5f588')
+sha256sums=('0ef9cfc55e7e3efe83cb8e888cd39c4a2211271c07deade81acdfb1477c79140')
 
 build() {
   cd $_pkgname-$pkgver
-  mv LICENCE LICENSE
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd $_pkgname-$pkgver
-  python setup.py check
+  pytest -v
 }
 
 package() {
   cd $_pkgname-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENCE -t "$pkgdir"/usr/share/licenses/$pkgname
 }