[arch-commits] Commit in python-pytest-repeat/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri May 15 06:49:11 UTC 2020


    Date: Friday, May 15, 2020 @ 06:49:09
  Author: felixonmars
Revision: 628011

archrelease: copy trunk to community-any

Added:
  python-pytest-repeat/repos/community-any/
  python-pytest-repeat/repos/community-any/PKGBUILD
    (from rev 628010, python-pytest-repeat/trunk/PKGBUILD)

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

Copied: python-pytest-repeat/repos/community-any/PKGBUILD (from rev 628010, python-pytest-repeat/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-05-15 06:49:09 UTC (rev 628011)
@@ -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