Date: Wednesday, May 17, 2023 @ 23:20:35 Author: felixonmars Revision: 1463013
archrelease: copy trunk to community-any Added: python-pytest-subtests/repos/community-any/PKGBUILD (from rev 1463012, python-pytest-subtests/trunk/PKGBUILD) Deleted: python-pytest-subtests/repos/community-any/PKGBUILD ----------+ PKGBUILD | 69 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 36 insertions(+), 33 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-05-17 23:20:23 UTC (rev 1463012) +++ PKGBUILD 2023-05-17 23:20:35 UTC (rev 1463013) @@ -1,33 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=python-pytest-subtests -pkgver=0.10.0 -_commit=d47a5ced94ed7e69d990640ad867280154f1f535 -pkgrel=3 -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') -source=("git+https://github.com/pytest-dev/pytest-subtests.git#commit=$_commit") -sha512sums=('SKIP') - -build() { - cd pytest-subtests - python setup.py build -} - -check() { - cd pytest-subtests - python setup.py egg_info - PYTHONPATH="$PWD" pytest -} - -package() { - cd pytest-subtests - python setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ -} - -# vim:set ts=2 sw=2 et: Copied: python-pytest-subtests/repos/community-any/PKGBUILD (from rev 1463012, python-pytest-subtests/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-05-17 23:20:35 UTC (rev 1463013) @@ -0,0 +1,36 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-pytest-subtests +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-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 -m build -nw +} + +check() { + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + + cd pytest-subtests + python -m installer --destdir=test_dir dist/*.whl + PYTHONPATH="$PWD/test_dir/$site_packages" pytest +} + +package() { + cd pytest-subtests + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +} + +# vim:set ts=2 sw=2 et: