Date: Wednesday, May 17, 2023 @ 23:20:23 Author: felixonmars Revision: 1463012
upgpkg: python-pytest-subtests 0.11.0-1 Modified: python-pytest-subtests/trunk/PKGBUILD ----------+ PKGBUILD | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-05-17 22:48:18 UTC (rev 1463011) +++ PKGBUILD 2023-05-17 23:20:23 UTC (rev 1463012) @@ -1,32 +1,35 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> pkgname=python-pytest-subtests -pkgver=0.10.0 -_commit=d47a5ced94ed7e69d990640ad867280154f1f535 -pkgrel=3 +pkgver=0.11.0 +_commit=06315b41dc778301ae5a4184fb747da24fd7b261 +pkgrel=1 pkgdesc='unittest subTest() support and subtests fixture' arch=('any') license=('MIT') url='https://github.com/pytest-dev/pytest-subtests' depends=('python-attrs' 'python-pytest') -makedepends=('git' 'python-setuptools-scm') +makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-setuptools-scm' + 'python-wheel') source=("git+https://github.com/pytest-dev/pytest-subtests.git#commit=$_commit") sha512sums=('SKIP') build() { cd pytest-subtests - python setup.py build + python -m build -nw } check() { + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + cd pytest-subtests - python setup.py egg_info - PYTHONPATH="$PWD" pytest + python -m installer --destdir=test_dir dist/*.whl + PYTHONPATH="$PWD/test_dir/$site_packages" pytest } package() { cd pytest-subtests - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ }