Date: Thursday, November 3, 2022 @ 18:30:13 Author: felixonmars Revision: 1341667
upgpkg: python-pytest-xdist 3.0.2-1 Modified: python-pytest-xdist/trunk/PKGBUILD ----------+ PKGBUILD | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-11-03 18:02:14 UTC (rev 1341666) +++ PKGBUILD 2022-11-03 18:30:13 UTC (rev 1341667) @@ -1,7 +1,7 @@ # Maintainer: Felix Yan <[email protected]> pkgname=python-pytest-xdist -pkgver=3.0.1 +pkgver=3.0.2 pkgrel=1 pkgdesc='py.test xdist plugin for distributed testing and loop-on-failing modes' arch=('any') @@ -8,16 +8,16 @@ license=('MIT') url='https://github.com/pytest-dev/pytest-xdist' depends=('python-execnet' 'python-pytest') -makedepends=('python-setuptools-scm') +makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel') checkdepends=('python-filelock' 'python-psutil') source=("https://github.com/pytest-dev/pytest-xdist/archive/v$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('ae5ee63c6921513fb58453140200a61091f7d0d9a339d118103bd69114a3ff8d43397955e30e91bb96e809c94f78dcdba09080a10b35564b4edebb61542bd87f') +sha512sums=('fcbc8a6e176e6c7a5523718ce9ab5129f87b0eda5a8e1b818c28f24ae83089d3d5097c8ad7d3a52219a8d2cc7f917b9569dac51712552d463fe920f8eeb867d4') export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver build() { cd pytest-xdist-$pkgver - python setup.py build + python -m build -nw } check() { @@ -24,13 +24,13 @@ # Hack entry points by installing it cd pytest-xdist-$pkgver - python setup.py install --root="$PWD/tmp_install" --optimize=1 + python -m installer -d "$PWD/tmp_install" dist/*.whl PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" pytest } package() { cd pytest-xdist-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer -d "$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ }
