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

David Runge dvzrv at archlinux.org
Wed Mar 18 22:10:05 UTC 2020


    Date: Wednesday, March 18, 2020 @ 22:10:05
  Author: dvzrv
Revision: 600712

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   77 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 38 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-18 22:09:58 UTC (rev 600711)
+++ PKGBUILD	2020-03-18 22:10:05 UTC (rev 600712)
@@ -1,39 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-_name=pytest-rerunfailures
-pkgname=python-pytest-rerunfailures
-pkgver=8.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')
-depends=('python-pytest')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('538fe5ca579ec50fc1689c4b7df3a55e0bdb08f87c2dfeb219ee141ef67c6c74a324c64f183f3ff85a5289ecfb54beef0fde2105eb0ae888ed861a15194a9dc5')
-
-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}"
-  local py_ver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # fix missing world-readable bit
-  chmod 644 "${pkgdir}/usr/lib/python${py_ver}/site-packages/__pycache__/"*.pyc
-  # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
-    -vDm 644 {CHANGES.rst,README.rst}
-}

Copied: python-pytest-rerunfailures/repos/community-any/PKGBUILD (from rev 600711, python-pytest-rerunfailures/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-18 22:10:05 UTC (rev 600712)
@@ -0,0 +1,38 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pytest-rerunfailures
+pkgname=python-pytest-rerunfailures
+pkgver=9.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')
+depends=('python-pytest')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('c5ac12dda4b8411627be2950baa3c910cdb9b7111d792adcfa55d053912090ab6a221de481938d8722c346d34b07fe7f629be7e853d209ea41c4d7efb1781c0c')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  export PYTHONPATH="build/lib:$PYTHONPATH"
+  pytest -v
+}
+
+package() {
+  cd "${_name}-${pkgver}"
+  local py_ver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  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