[arch-commits] Commit in python-shtab/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Wed Apr 27 20:16:49 UTC 2022
Date: Wednesday, April 27, 2022 @ 20:16:49
Author: arojas
Revision: 1191301
Update to 1.5.4
Modified:
python-shtab/trunk/PKGBUILD
----------+
PKGBUILD | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-27 20:05:50 UTC (rev 1191300)
+++ PKGBUILD 2022-04-27 20:16:49 UTC (rev 1191301)
@@ -3,7 +3,7 @@
_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)
@@ -10,23 +10,23 @@
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
}
More information about the arch-commits
mailing list