[arch-commits] Commit in python-pytest-rerunfailures/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Mon Aug 1 23:14:22 UTC 2022
Date: Monday, August 1, 2022 @ 23:14:22
Author: dvzrv
Revision: 1259723
upgpkg: python-pytest-rerunfailures 10.2-4: Rebuild to add setuptools to runtime dependencies.
Python-setuptools is actually required during runtime.
Switch to PEP517.
Remove unnecessary quotes and curly braces.
Consolidate depends/makedepends/checkdepends.
Modified:
python-pytest-rerunfailures/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++----------------
1 file changed, 14 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-01 23:07:57 UTC (rev 1259722)
+++ PKGBUILD 2022-08-01 23:14:22 UTC (rev 1259723)
@@ -3,32 +3,30 @@
_name=pytest-rerunfailures
pkgname=python-pytest-rerunfailures
pkgver=10.2
-pkgrel=3
+pkgrel=4
pkgdesc="A plugin for py.test that re-runs failed tests to eliminate intermittent failures"
-arch=('any')
+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")
+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 setup.py build
+ cd $_name-$pkgver
+ python -m build --wheel --no-isolation
}
check() {
- cd "${_name}-${pkgver}"
- export PYTHONPATH="build/lib:$PYTHONPATH"
- pytest -v
+ cd $_name-$pkgver
+ pytest -vv
}
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}
+ 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