Date: Friday, March 11, 2022 @ 22:23:19 Author: felixonmars Revision: 1148829
upgpkg: python-pytest-isort 3.0.0-1 Modified: python-pytest-isort/trunk/PKGBUILD ----------+ PKGBUILD | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-03-11 22:15:08 UTC (rev 1148828) +++ PKGBUILD 2022-03-11 22:23:19 UTC (rev 1148829) @@ -1,20 +1,20 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> pkgname=python-pytest-isort -pkgver=2.0.0 -pkgrel=5 +pkgver=3.0.0 +pkgrel=1 pkgdesc='pytest plugin to perform isort checks (import ordering)' arch=('any') license=('BSD') url='https://github.com/moccu/pytest-isort' depends=('python-pytest' 'python-isort') -makedepends=('python-setuptools') -source=("$pkgname-$pkgver.tar.gz::https://github.com/moccu/pytest-isort/archive/$pkgver.tar.gz") -sha512sums=('b338bf0de7e98be330c1ee391e0b1aaae363efbcfd89f14138704ad6d0c29a4d7a0b27e17251148dc26d04aae39184e0c5a465f3091769cf1b4043f6faf3c653') +makedepends=('python-build' 'python-installer' 'python-poetry') +source=("https://github.com/moccu/pytest-isort/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('d1efae99da70c324bff078d2a9182dcfac715da2f9297c572b4d220d8b1701a7254d8042aa63b247ca38f1c4eba298b48e884f56989848d2afe419e7fdb0186a') build() { cd pytest-isort-$pkgver - python setup.py build + python -m build -nw } check() { @@ -21,14 +21,14 @@ # Hack entry points by installing it cd pytest-isort-$pkgver - python setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" py.test + python -m installer --destdir="$PWD/tmp_install" dist/*.whl + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" pytest } package() { cd pytest-isort-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE.rst -t "$pkgdir"/usr/share/licenses/$pkgname/ } # vim:set ts=2 sw=2 et: