Date: Tuesday, January 31, 2023 @ 19:54:45
Author: felixonmars
Revision: 1391498
upgpkg: python-pytest-repeat 0.9.1-4
Modified:
python-pytest-repeat/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-31 19:54:37 UTC (rev 1391497)
+++ PKGBUILD 2023-01-31 19:54:45 UTC (rev 1391498)
@@ -2,20 +2,19 @@
pkgname=python-pytest-repeat
pkgver=0.9.1
-pkgrel=3
+_commit=e987effed02b37d30f6cbc1e8c7f51a4b3b9e62f
+pkgrel=4
pkgdesc='pytest plugin for repeating test execution'
arch=('any')
license=('MPL')
url='https://github.com/pytest-dev/pytest-repeat'
depends=('python-pytest')
-makedepends=('python-setuptools-scm')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-repeat/archive/v$pkgver.tar.gz")
-sha512sums=('6820712ef0aeb03a5147e3f025d1ea6024c970b3027fb9f698f7ccadea83bbf9f1871e0b8ee3ca0bf4daece5f498a7f5016bca1b5816f535593521073ab8fb6b')
+makedepends=('git' 'python-setuptools-scm')
+source=("git+https://github.com/pytest-dev/pytest-repeat.git#commit=$_commit")
+sha512sums=('SKIP')
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
build() {
- cd pytest-repeat-$pkgver
+ cd pytest-repeat
python setup.py build
}
@@ -22,7 +21,7 @@
check() {
# Hack entry points by installing it
- cd pytest-repeat-$pkgver
+ cd pytest-repeat
local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
python setup.py install --root="$PWD/tmp_install" --optimize=1
PYTHONPATH="$PWD/tmp_install$site_packages:$PYTHONPATH" pytest
@@ -29,7 +28,7 @@
}
package() {
- cd pytest-repeat-$pkgver
+ cd pytest-repeat
python setup.py install --root="$pkgdir" --optimize=1
}