Date: Tuesday, January 31, 2023 @ 19:54:57
Author: felixonmars
Revision: 1391499
archrelease: copy trunk to community-any
Added:
python-pytest-repeat/repos/community-any/PKGBUILD
(from rev 1391498, python-pytest-repeat/trunk/PKGBUILD)
Deleted:
python-pytest-repeat/repos/community-any/PKGBUILD
----------+
PKGBUILD | 70 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 35 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-31 19:54:45 UTC (rev 1391498)
+++ PKGBUILD 2023-01-31 19:54:57 UTC (rev 1391499)
@@ -1,35 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-pytest-repeat
-pkgver=0.9.1
-pkgrel=3
-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')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-build() {
- cd pytest-repeat-$pkgver
- python setup.py build
-}
-
-check() {
- # Hack entry points by installing it
-
- cd pytest-repeat-$pkgver
- python setup.py install --root="$PWD/tmp_install" --optimize=1
- PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH"
pytest
-}
-
-package() {
- cd pytest-repeat-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-pytest-repeat/repos/community-any/PKGBUILD (from rev 1391498,
python-pytest-repeat/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-31 19:54:57 UTC (rev 1391499)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-repeat
+pkgver=0.9.1
+_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=('git' 'python-setuptools-scm')
+source=("git+https://github.com/pytest-dev/pytest-repeat.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd pytest-repeat
+ python setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ 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
+}
+
+package() {
+ cd pytest-repeat
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et: