[arch-commits] Commit in python-pytest-rerunfailures/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Tue Jan 22 21:12:45 UTC 2019
Date: Tuesday, January 22, 2019 @ 21:12:44
Author: dvzrv
Revision: 427036
upgpkg: python-pytest-rerunfailures 6.0-1
Upgrading to 6.0. Adding unit tests.
Modified:
python-pytest-rerunfailures/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-22 21:12:15 UTC (rev 427035)
+++ PKGBUILD 2019-01-22 21:12:44 UTC (rev 427036)
@@ -2,18 +2,20 @@
_name=pytest-rerunfailures
pkgbase=python-pytest-rerunfailures
pkgname=('python-pytest-rerunfailures' 'python2-pytest-rerunfailures')
-pkgver=4.1
-pkgrel=2
-pkgdesc="A py.test plugin that re-runs failed tests up to -n times to eliminate flakey failures"
+pkgver=6.0
+pkgrel=1
+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')
makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest' 'python2-mock')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('0948242d26ebbac3c3252c755e8963cc0b958d8e1f6232b9f76310cefc7bea0844522df3620000c56c6ff7afdd3db2dd35488c8df4bede16d7a55117207c6911')
+sha512sums=('654a6afea01e5d7e0f516a6427eee5bd2947757a0c05ee177521f607d8cc7e472e614267e414ce014528c4bd5de99a4bfaf5381d6c5dbf5abd9e7170a4c3fbc8')
prepare() {
mv -v "${_name}-${pkgver}" "${pkgname[0]}-${pkgver}"
+ #
cp -av "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
}
@@ -24,6 +26,14 @@
python2 setup.py build
}
+check() {
+ export PYTHONPATH="build/lib:$PYTHONPATH"
+ cd "${pkgname[0]}-${pkgver}"
+ py.test test_pytest_rerunfailures.py
+ cd ../"${pkgname[1]}-${pkgver}"
+ py.test2 test_pytest_rerunfailures.py
+}
+
package_python-pytest-rerunfailures() {
depends=('python-pytest')
cd "${pkgname}-${pkgver}"
More information about the arch-commits
mailing list