[arch-commits] Commit in python-pytest-rerunfailures/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Tue Jun 12 21:11:04 UTC 2018


    Date: Tuesday, June 12, 2018 @ 21:11:04
  Author: dvzrv
Revision: 342713

upgpkg: python-pytest-rerunfailures 4.1-1

Upgrading to 4.1. Switching to pypi upstream. Minor fixes.

Modified:
  python-pytest-rerunfailures/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-12 21:09:46 UTC (rev 342712)
+++ PKGBUILD	2018-06-12 21:11:04 UTC (rev 342713)
@@ -1,16 +1,17 @@
+# $Id$
 # Maintainer: David Runge <dave at sleepmap.de>
 _name=pytest-rerunfailures
 pkgbase=python-pytest-rerunfailures
 pkgname=('python-pytest-rerunfailures' 'python2-pytest-rerunfailures')
-pkgver=4.0
-pkgrel=2
+pkgver=4.1
+pkgrel=1
 pkgdesc="A py.test plugin that re-runs failed tests up to -n times to eliminate flakey failures"
 arch=('any')
 url="https://github.com/pytest-dev/pytest-rerunfailures/"
 license=('MPL2')
 makedepends=('python-setuptools' 'python2-setuptools')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/${_name}/archive/${pkgver}.tar.gz")
-sha512sums=('6692662ae721e7e42d5459cea6eb0d4b2640e4c98879fe512cb8af0b1e44fc5ecf1c749ff3f60a3803f492f5bbcc602a46a3534abce92c94c5a45a2e4be4c65c')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('0948242d26ebbac3c3252c755e8963cc0b958d8e1f6232b9f76310cefc7bea0844522df3620000c56c6ff7afdd3db2dd35488c8df4bede16d7a55117207c6911')
 
 prepare() {
   mv -v "${_name}-${pkgver}" "${pkgname[0]}-${pkgver}"
@@ -26,26 +27,26 @@
 
 package_python-pytest-rerunfailures() {
   depends=('python-pytest')
-  cd "${pkgname[0]}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
   python setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \
     --root="${pkgdir}"
   # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname[0]}" \
-    -vDm644 {CHANGES.rst,README.rst}
+  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
+    -vDm 644 {CHANGES.rst,README.rst}
 }
 
 package_python2-pytest-rerunfailures() {
   depends=('python2-pytest')
-  cd "${pkgname[1]}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
   python2 setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \
     --root="${pkgdir}"
   # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname[1]}" \
-    -vDm644 {CHANGES.rst,README.rst}
+  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
+    -vDm 644 {CHANGES.rst,README.rst}
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list