Date: Sunday, May 30, 2021 @ 01:23:16 Author: felixonmars Revision: 950321
archrelease: copy trunk to community-any Added: python-pytest-subtests/repos/community-any/PKGBUILD (from rev 950320, python-pytest-subtests/trunk/PKGBUILD) Deleted: python-pytest-subtests/repos/community-any/PKGBUILD ----------+ PKGBUILD | 70 +++++++++++++++++++++++++++++-------------------------------- 1 file changed, 34 insertions(+), 36 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-05-30 01:23:00 UTC (rev 950320) +++ PKGBUILD 2021-05-30 01:23:16 UTC (rev 950321) @@ -1,36 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=python-pytest-subtests -pkgver=0.4.0 -pkgrel=1 -pkgdesc='unittest subTest() support and subtests fixture' -arch=('any') -license=('MIT') -url='https://github.com/pytest-dev/pytest-subtests' -depends=('python-pytest') -makedepends=('python-setuptools_scm') -source=("https://github.com/pytest-dev/pytest-subtests/archive/$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('00302f47d1699e053314b6b4eee7c84a04fe0f51f287e338374bbd518c7d245d839ea0f1ccf50d4f35c86138cf6ea36da26e67bf41295205fb38323f2ad89f89') - -export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver - -build() { - cd pytest-subtests-$pkgver - python setup.py build -} - -check() { - # Hack entry points by installing it - - cd pytest-subtests-$pkgver - python setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" pytest -} - -package() { - cd pytest-subtests-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -# vim:set ts=2 sw=2 et: Copied: python-pytest-subtests/repos/community-any/PKGBUILD (from rev 950320, python-pytest-subtests/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-05-30 01:23:16 UTC (rev 950321) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-pytest-subtests +pkgver=0.5.0 +pkgrel=1 +pkgdesc='unittest subTest() support and subtests fixture' +arch=('any') +license=('MIT') +url='https://github.com/pytest-dev/pytest-subtests' +depends=('python-pytest') +makedepends=('python-setuptools_scm') +source=("https://github.com/pytest-dev/pytest-subtests/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('e3d7e90c3ab66950eb80d25049bc6f6f75b08b3da5ce0de5f3fc55d6a176a8d1fdcb19a19f7d9d137aeadcc82b214550474f76d5611bc5592ca649ddd8257a2a') + +export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + +build() { + cd pytest-subtests-$pkgver + python setup.py build +} + +check() { + cd pytest-subtests-$pkgver + python setup.py egg_info + PYTHONPATH="$PWD" pytest +} + +package() { + cd pytest-subtests-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: