Date: Thursday, October 27, 2022 @ 19:52:06 Author: felixonmars Revision: 1338239
upgpkg: python-pyhamcrest 2.0.4-1 Modified: python-pyhamcrest/trunk/PKGBUILD ----------+ PKGBUILD | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-10-27 19:43:20 UTC (rev 1338238) +++ PKGBUILD 2022-10-27 19:52:06 UTC (rev 1338239) @@ -1,7 +1,7 @@ # Maintainer: Felix Yan <[email protected]> pkgname=python-pyhamcrest -pkgver=2.0.3 +pkgver=2.0.4 pkgrel=1 pkgdesc="Hamcrest framework for matcher objects" arch=('any') @@ -8,23 +8,25 @@ license=('BSD') url="https://github.com/hamcrest/PyHamcrest" depends=('python') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-hatch-vcs') checkdepends=('python-pytest') source=("https://github.com/hamcrest/PyHamcrest/archive/V$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('4a28c0ae04db11a86c44dff001e919a5bb6b820af8ffd60b1a1f2846f257d79daac76fbdeac4a0039d149e643043258a0685382a3a4b52c6d4586b8be95e1657') +sha512sums=('6ee558fe04dce839d5d5d20b90ecf82fed96570e1c5b3a827fce19dba167bf4702ea707560b19e2d6e82be20913deb6cf17fa7e140733899a92abb28e9f2aa56') +export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + build() { cd PyHamcrest-$pkgver - python setup.py build + python -m build -nw } check() { cd PyHamcrest-$pkgver - PYTHONPATH="$PWD/build/lib" pytest + PYTHONPATH="$PWD/src" pytest } package() { cd PyHamcrest-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer -d "$pkgdir" dist/*.whl install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ }
