Date: Tuesday, January 31, 2023 @ 20:21:02
  Author: felixonmars
Revision: 1391536

upgpkg: python-pytest-xdist 3.1.0-2

Modified:
  python-pytest-xdist/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 20:20:43 UTC (rev 1391535)
+++ PKGBUILD    2023-01-31 20:21:02 UTC (rev 1391536)
@@ -2,21 +2,20 @@
 
 pkgname=python-pytest-xdist
 pkgver=3.1.0
-pkgrel=1
+_commit=92a76bb0139c0c95f89470bfbbd98289321b5543
+pkgrel=2
 pkgdesc='py.test xdist plugin for distributed testing and loop-on-failing 
modes'
 arch=('any')
 license=('MIT')
 url='https://github.com/pytest-dev/pytest-xdist'
 depends=('python-execnet' 'python-pytest')
-makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 
'python-wheel')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 
'python-wheel')
 checkdepends=('python-filelock' 'python-psutil')
-source=("https://github.com/pytest-dev/pytest-xdist/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('6a7e013f91ed3a36722839a96979977201e9da37b424857df2385cfcc6f6781c9cde392e5c0bb6182a57bec2cb3535a39cb0984139b60f93a970ead7f97dc362')
+source=("git+https://github.com/pytest-dev/pytest-xdist.git#commit=$_commit";)
+sha512sums=('SKIP')
 
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
 build() {
-  cd pytest-xdist-$pkgver
+  cd pytest-xdist
   python -m build -nw
 }
 
@@ -23,7 +22,7 @@
 check() {
   # Hack entry points by installing it
 
-  cd pytest-xdist-$pkgver
+  cd pytest-xdist
   python -m installer -d "$PWD/tmp_install" dist/*.whl
   local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
   PYTHONPATH="$PWD/tmp_install$site_packages:$PYTHONPATH" pytest
@@ -30,7 +29,7 @@
 }
 
 package() {
-  cd pytest-xdist-$pkgver
+  cd pytest-xdist
   python -m installer -d "$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to