[arch-commits] Commit in python-pytest-rerunfailures/repos/community-any (2 files)
David Runge
dvzrv at archlinux.org
Mon Nov 18 22:02:11 UTC 2019
Date: Monday, November 18, 2019 @ 22:02:10
Author: dvzrv
Revision: 530353
archrelease: copy trunk to community-any
Added:
python-pytest-rerunfailures/repos/community-any/PKGBUILD
(from rev 530352, python-pytest-rerunfailures/trunk/PKGBUILD)
Deleted:
python-pytest-rerunfailures/repos/community-any/PKGBUILD
----------+
PKGBUILD | 75 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 39 insertions(+), 36 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-18 22:01:55 UTC (rev 530352)
+++ PKGBUILD 2019-11-18 22:02:10 UTC (rev 530353)
@@ -1,36 +0,0 @@
-# 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}
-}
Copied: python-pytest-rerunfailures/repos/community-any/PKGBUILD (from rev 530352, python-pytest-rerunfailures/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-18 22:02:10 UTC (rev 530353)
@@ -0,0 +1,39 @@
+# 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}
+}
More information about the arch-commits
mailing list