Date: Wednesday, November 16, 2022 @ 15:47:19 Author: alerque Revision: 1349192
upgpkg: git-revise 0.7.0-2; switch to PEP 517 build tooling Modified: git-revise/trunk/PKGBUILD ----------+ PKGBUILD | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-11-16 15:43:23 UTC (rev 1349191) +++ PKGBUILD 2022-11-16 15:47:19 UTC (rev 1349192) @@ -4,13 +4,14 @@ pkgname=git-revise pkgdesc='A git subcommand to efficiently update, split, and rearrange commits' pkgver=0.7.0 -pkgrel=1 +pkgrel=2 url="https://mystor.github.io/$pkgname.html" arch=(any) license=(MIT) depends=(git python) -makedepends=(python-setuptools) +makedepends=(python-{build,installer,wheel} + python-setuptools) _archive="$pkgname-$pkgver" source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$_archive.tar.gz") sha256sums=('af92ca2e7224c5e7ac2e16ed2f302dd36839a33521655c20fe0b7d693a1dc4c4') @@ -17,17 +18,11 @@ build() { cd "$_archive" - python setup.py build + python -m build -wn } -# Tests are missing from PyPi source releases -# check() { -# cd "$_archive" -# python setup.py test -# } - package() { cd "$_archive" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer -d "$pkgdir" dist/*.whl install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE }
