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

David Runge dvzrv at gemini.archlinux.org
Mon Aug 1 23:14:31 UTC 2022


    Date: Monday, August 1, 2022 @ 23:14:31
  Author: dvzrv
Revision: 1259724

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   66 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 32 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-01 23:14:22 UTC (rev 1259723)
+++ PKGBUILD	2022-08-01 23:14:31 UTC (rev 1259724)
@@ -1,34 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=pytest-rerunfailures
-pkgname=python-pytest-rerunfailures
-pkgver=10.2
-pkgrel=3
-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=('8830610276e2cc172ee372ae4d8376bc6329138751ea2737a4def6af32d05c112c872a7a180ff554018058c05ed0d109927dbac61f748586257e40b0243f03c8')
-b2sums=('9f317f3a39ac234e145a14d532d2727bb9fb5fead65c05372cf95268e0f589f9de994cd3c47e75dcb354c996595698c43fccdea5134d2e1921429c8ea7b71451')
-
-build() {
-  cd "${_name}-${pkgver}"
-  python setup.py build
-}
-
-check() {
-  cd "${_name}-${pkgver}"
-  export PYTHONPATH="build/lib:$PYTHONPATH"
-  pytest -v
-}
-
-package() {
-  cd "${_name}-${pkgver}"
-  python setup.py install --optimize=1 --root="${pkgdir}"
-  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
-    -vDm 644 {CHANGES.rst,README.rst}
-}

Copied: python-pytest-rerunfailures/repos/community-any/PKGBUILD (from rev 1259723, python-pytest-rerunfailures/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-01 23:14:31 UTC (rev 1259724)
@@ -0,0 +1,32 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pytest-rerunfailures
+pkgname=python-pytest-rerunfailures
+pkgver=10.2
+pkgrel=4
+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 python-setuptools)
+makedepends=(python-build python-installer python-wheel)
+checkdepends=(python-mock)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('8830610276e2cc172ee372ae4d8376bc6329138751ea2737a4def6af32d05c112c872a7a180ff554018058c05ed0d109927dbac61f748586257e40b0243f03c8')
+b2sums=('9f317f3a39ac234e145a14d532d2727bb9fb5fead65c05372cf95268e0f589f9de994cd3c47e75dcb354c996595698c43fccdea5134d2e1921429c8ea7b71451')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest -vv
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 {CHANGES.rst,README.rst} -t "$pkgdir/usr/share/doc/$pkgname/"
+}



More information about the arch-commits mailing list