[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Fri May 15 06:48:56 UTC 2020


    Date: Friday, May 15, 2020 @ 06:48:55
  Author: felixonmars
Revision: 628010

addpkg: python-pytest-repeat 0.8.0-1

Added:
  python-pytest-repeat/
  python-pytest-repeat/repos/
  python-pytest-repeat/trunk/
  python-pytest-repeat/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Added: python-pytest-repeat/trunk/PKGBUILD
===================================================================
--- python-pytest-repeat/trunk/PKGBUILD	                        (rev 0)
+++ python-pytest-repeat/trunk/PKGBUILD	2020-05-15 06:48:55 UTC (rev 628010)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-repeat
+pkgver=0.8.0
+pkgrel=1
+pkgdesc='pytest plugin for repeating test execution'
+arch=('any')
+license=('MPL')
+url='https://github.com/pytest-dev/pytest-repeat'
+depends=('python-pytest')
+makedepends=('python-setuptools-scm')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-repeat/archive/v$pkgver.tar.gz")
+sha512sums=('011ae789b0ea81b529e73c4d395195a95ac3ad347373453fd2f8ab56684027fc5666466bea6368ba464b0d67bba0db354de9cf717208cf58892943b08262e44f')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd pytest-repeat-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pytest-repeat-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" pytest
+}
+
+package() {
+  cd pytest-repeat-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list