[arch-commits] Commit in python-pytest-black/repos/community-any (PKGBUILD PKGBUILD)
Date: Tuesday, October 6, 2020 @ 21:16:07 Author: felixonmars Revision: 719631 archrelease: copy trunk to community-any Added: python-pytest-black/repos/community-any/PKGBUILD (from rev 719630, python-pytest-black/trunk/PKGBUILD) Deleted: python-pytest-black/repos/community-any/PKGBUILD --+ PKGBUILD | 68 ++--- 1 file changed, 34 insertions(+), 34 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-10-06 21:15:50 UTC (rev 719630) +++ PKGBUILD2020-10-06 21:16:07 UTC (rev 719631) @@ -1,34 +0,0 @@ -# Maintainer: Felix Yan - -pkgname=python-pytest-black -pkgver=0.3.11 -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=('566c496abfcf87e17b355a3edddb4de371c54226565fda40803eb8c5c0c2caa3d4b2438c7575f616148ebab34f4e8d6085e26f321cbe0505aaeb2fda73652553') - -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 719630, python-pytest-black/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-10-06 21:16:07 UTC (rev 719631) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan + +pkgname=python-pytest-black +pkgver=0.3.12 +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=('1576761c9a93e6a05d5f1d40200e228791a67ac33f437330940ccbb898121df22814a794858b36de9223d4cc45d58fcbefaa08c87275f36e04901cb4cd217760') + +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/ +}
[arch-commits] Commit in python-pytest-black/repos/community-any (PKGBUILD PKGBUILD)
Date: Wednesday, September 2, 2020 @ 20:52:28 Author: felixonmars Revision: 697047 archrelease: copy trunk to community-any Added: python-pytest-black/repos/community-any/PKGBUILD (from rev 697046, python-pytest-black/trunk/PKGBUILD) Deleted: python-pytest-black/repos/community-any/PKGBUILD --+ PKGBUILD | 68 ++--- 1 file changed, 34 insertions(+), 34 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-09-02 20:52:17 UTC (rev 697046) +++ PKGBUILD2020-09-02 20:52:28 UTC (rev 697047) @@ -1,34 +0,0 @@ -# Maintainer: Felix Yan - -pkgname=python-pytest-black -pkgver=0.3.10 -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=('87d3d54d6dfb44585ae4aba78e1b49e168a94ae01e6f12050c9d07a40d2587e1a7fd323de6c9f28264f21ce447563df38ac8a2159938a4e68ced47859798fe23') - -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 697046, python-pytest-black/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-09-02 20:52:28 UTC (rev 697047) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan + +pkgname=python-pytest-black +pkgver=0.3.11 +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=('566c496abfcf87e17b355a3edddb4de371c54226565fda40803eb8c5c0c2caa3d4b2438c7575f616148ebab34f4e8d6085e26f321cbe0505aaeb2fda73652553') + +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/ +}
[arch-commits] Commit in python-pytest-black/repos/community-any (PKGBUILD PKGBUILD)
Date: Monday, June 29, 2020 @ 19:23:33 Author: felixonmars Revision: 656442 archrelease: copy trunk to community-any Added: python-pytest-black/repos/community-any/PKGBUILD (from rev 656441, python-pytest-black/trunk/PKGBUILD) Deleted: python-pytest-black/repos/community-any/PKGBUILD --+ PKGBUILD | 68 ++--- 1 file changed, 34 insertions(+), 34 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-06-29 19:23:23 UTC (rev 656441) +++ PKGBUILD2020-06-29 19:23:33 UTC (rev 656442) @@ -1,34 +0,0 @@ -# Maintainer: Felix Yan - -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/ -} Copied: python-pytest-black/repos/community-any/PKGBUILD (from rev 656441, python-pytest-black/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-06-29 19:23:33 UTC (rev 656442) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan + +pkgname=python-pytest-black +pkgver=0.3.10 +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=('87d3d54d6dfb44585ae4aba78e1b49e168a94ae01e6f12050c9d07a40d2587e1a7fd323de6c9f28264f21ce447563df38ac8a2159938a4e68ced47859798fe23') + +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/ +}
[arch-commits] Commit in python-pytest-black/repos/community-any (PKGBUILD PKGBUILD)
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 === --- PKGBUILD2020-05-05 04:44:17 UTC (rev 624788) +++ PKGBUILD2020-05-05 04:44:27 UTC (rev 624789) @@ -1,34 +0,0 @@ -# Maintainer: Felix Yan - -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) +++ PKGBUILD2020-05-05 04:44:27 UTC (rev 624789) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan + +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/ +}
[arch-commits] Commit in python-pytest-black/repos/community-any (PKGBUILD PKGBUILD)
Date: Monday, February 10, 2020 @ 07:04:42 Author: felixonmars Revision: 565687 archrelease: copy trunk to community-any Added: python-pytest-black/repos/community-any/PKGBUILD (from rev 565686, python-pytest-black/trunk/PKGBUILD) Deleted: python-pytest-black/repos/community-any/PKGBUILD --+ PKGBUILD | 68 ++--- 1 file changed, 34 insertions(+), 34 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-02-10 07:04:33 UTC (rev 565686) +++ PKGBUILD2020-02-10 07:04:42 UTC (rev 565687) @@ -1,34 +0,0 @@ -# Maintainer: Felix Yan - -pkgname=python-pytest-black -pkgver=0.3.7 -pkgrel=3 -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=('2dfd4fb020c29eddcb21a2311f3e0b2ca8b6f2406de057d48cf574aa108136d9a59e252f7e364892fdaf83e2a326d94d718278208b312bbaf46e3033d19b1af7') - -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 565686, python-pytest-black/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-02-10 07:04:42 UTC (rev 565687) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan + +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/ +}
[arch-commits] Commit in python-pytest-black/repos/community-any (PKGBUILD PKGBUILD)
Date: Thursday, May 30, 2019 @ 07:50:10 Author: felixonmars Revision: 474494 archrelease: copy trunk to community-any Added: python-pytest-black/repos/community-any/PKGBUILD (from rev 474493, python-pytest-black/trunk/PKGBUILD) Deleted: python-pytest-black/repos/community-any/PKGBUILD --+ PKGBUILD | 68 ++--- 1 file changed, 34 insertions(+), 34 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-05-30 07:49:59 UTC (rev 474493) +++ PKGBUILD2019-05-30 07:50:10 UTC (rev 474494) @@ -1,34 +0,0 @@ -# Maintainer: Felix Yan - -pkgname=python-pytest-black -pkgver=0.3.6 -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=('0f10951fcfdaff4612dbea20215328f78dd43945698cf99b6714e39bc195cd2e08616f189ee9081932a12271f81f4f3d847beadc1bb1a3ebed60d7c6edd1ab37') - -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.7/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 474493, python-pytest-black/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2019-05-30 07:50:10 UTC (rev 474494) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan + +pkgname=python-pytest-black +pkgver=0.3.7 +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=('2dfd4fb020c29eddcb21a2311f3e0b2ca8b6f2406de057d48cf574aa108136d9a59e252f7e364892fdaf83e2a326d94d718278208b312bbaf46e3033d19b1af7') + +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.7/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/ +}
[arch-commits] Commit in python-pytest-black/repos/community-any (PKGBUILD PKGBUILD)
Date: Tuesday, May 28, 2019 @ 17:07:47 Author: felixonmars Revision: 472778 archrelease: copy trunk to community-any Added: python-pytest-black/repos/community-any/PKGBUILD (from rev 472777, python-pytest-black/trunk/PKGBUILD) Deleted: python-pytest-black/repos/community-any/PKGBUILD --+ PKGBUILD | 68 ++--- 1 file changed, 34 insertions(+), 34 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-05-28 17:07:33 UTC (rev 472777) +++ PKGBUILD2019-05-28 17:07:47 UTC (rev 472778) @@ -1,34 +0,0 @@ -# Maintainer: Felix Yan - -pkgname=python-pytest-black -pkgver=0.3.5 -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=('a1ab8d7db5fa01539d308d77619284708c206c92174349c60a8fd74f345fb9934566800c0fb0344fb8a5628cffcdb9cdaad5531f03914a8031a8b3d290188b89') - -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.7/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 472777, python-pytest-black/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2019-05-28 17:07:47 UTC (rev 472778) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan + +pkgname=python-pytest-black +pkgver=0.3.6 +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=('0f10951fcfdaff4612dbea20215328f78dd43945698cf99b6714e39bc195cd2e08616f189ee9081932a12271f81f4f3d847beadc1bb1a3ebed60d7c6edd1ab37') + +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.7/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/ +}