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

Felix Yan felixonmars at archlinux.org
Mon Nov 4 08:26:56 UTC 2019


    Date: Monday, November 4, 2019 @ 08:26:56
  Author: felixonmars
Revision: 523742

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-rerunfailures/repos/community-staging-any/
  python-pytest-rerunfailures/repos/community-staging-any/PKGBUILD
    (from rev 523739, python-pytest-rerunfailures/trunk/PKGBUILD)

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

Copied: python-pytest-rerunfailures/repos/community-staging-any/PKGBUILD (from rev 523739, python-pytest-rerunfailures/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 08:26:56 UTC (rev 523742)
@@ -0,0 +1,36 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=pytest-rerunfailures
+pkgname=python-pytest-rerunfailures
+pkgver=7.0
+pkgrel=2
+pkgdesc="A plugin for py.test that re-runs failed tests to eliminate intermittent failures"
+arch=('any')
+url="https://github.com/pytest-dev/pytest-rerunfailures/"
+license=('MPL2')
+depends=('python-pytest')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('df26952f4c88c43a7df59cc9b41d794987e4d7c43cf4b656fb2e10734e16b0218ea0dfcc184943f96c39add800fe519ee6b8843b3a0f4d36e9feb59109199df3')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  export PYTHONPATH="build/lib:$PYTHONPATH"
+  py.test test_pytest_rerunfailures.py
+}
+
+package() {
+  cd "${_name}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  # docs
+  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
+    -vDm 644 {CHANGES.rst,README.rst}
+}



More information about the arch-commits mailing list