Date: Tuesday, May 5, 2020 @ 04:44:27 Author: felixonmars Revision: 624789
archrelease: copy trunk to community-any Added: python-pytest-black/repos/community-any/PKGBUILD (from rev 624788, python-pytest-black/trunk/PKGBUILD) Deleted: python-pytest-black/repos/community-any/PKGBUILD ----------+ PKGBUILD | 68 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-05-05 04:44:17 UTC (rev 624788) +++ PKGBUILD 2020-05-05 04:44:27 UTC (rev 624789) @@ -1,34 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=python-pytest-black -pkgver=0.3.8 -pkgrel=1 -pkgdesc="A pytest plugin to enable format checking with black" -arch=('any') -license=('MIT') -url="https://github.com/shopkeep/pytest-black/" -depends=('python-black' 'python-pytest') -makedepends=('python-setuptools-scm') -source=("$pkgname-$pkgver.tar.gz::https://github.com/shopkeep/pytest-black/archive/$pkgver.tar.gz") -sha512sums=('f3092b8c820e3b14682b156cae50c9aeec7a25fcf5208aea7d3a2ecf0b9c2d5172689bd936f0aec20fd0a73de0575a5a100ff508439ef3337a73def928aadb29') - -export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver - -build() { - cd pytest-black-$pkgver - python setup.py build -} - -check() { - # Hack entry points by installing it - - cd pytest-black-$pkgver - python setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH:$PWD/tests" py.test -} - -package() { - cd pytest-black-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ -} Copied: python-pytest-black/repos/community-any/PKGBUILD (from rev 624788, python-pytest-black/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-05-05 04:44:27 UTC (rev 624789) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-pytest-black +pkgver=0.3.9 +pkgrel=1 +pkgdesc="A pytest plugin to enable format checking with black" +arch=('any') +license=('MIT') +url="https://github.com/shopkeep/pytest-black/" +depends=('python-black' 'python-pytest') +makedepends=('python-setuptools-scm') +source=("$pkgname-$pkgver.tar.gz::https://github.com/shopkeep/pytest-black/archive/$pkgver.tar.gz") +sha512sums=('b8c4d459b325ff2f46b25311d5fbd8f5bf3ff63d1529591f603e16f04c357af31e5d5004f922abcf287533c67fbec7b8330097cb52f2f6a289ec42b6170adc10') + +export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + +build() { + cd pytest-black-$pkgver + python setup.py build +} + +check() { + # Hack entry points by installing it + + cd pytest-black-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH:$PWD/tests" py.test +} + +package() { + cd pytest-black-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}