[arch-commits] Commit in python-pytest-xdist/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Aug 14 19:57:12 UTC 2020


    Date: Friday, August 14, 2020 @ 19:57:12
  Author: felixonmars
Revision: 679275

upgpkg: python-pytest-xdist 2.0.0-1

Modified:
  python-pytest-xdist/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++------------------------------
 1 file changed, 10 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-14 19:56:59 UTC (rev 679274)
+++ PKGBUILD	2020-08-14 19:57:12 UTC (rev 679275)
@@ -1,58 +1,38 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-pytest-xdist
-pkgname=('python-pytest-xdist' 'python2-pytest-xdist')
-pkgver=1.34.0
+pkgname=python-pytest-xdist
+pkgver=2.0.0
 pkgrel=1
 pkgdesc='py.test xdist plugin for distributed testing and loop-on-failing modes'
 arch=('any')
 license=('MIT')
 url='https://bitbucket.org/pytest-dev/pytest-xdist'
+depends=('python-execnet' 'python-psutil' 'python-pytest-forked')
 makedepends=('python-pytest' 'python2-pytest' 'python-setuptools_scm' 'python2-setuptools_scm'
              'python-execnet' 'python2-execnet' 'python-pytest-forked' 'python2-pytest-forked'
              'python-filelock' 'python2-filelock')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-xdist/archive/v$pkgver.tar.gz")
-sha512sums=('636fe25d41ae2ba606760ec3fae3a7ae96b1c68251ecbf0df4ec50f03e44ded06038e73bb6955b750cc4b676e7f892bc8d79ae92102fadfb23d64bc5e54efdf6')
+source=("https://github.com/pytest-dev/pytest-xdist/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('eef8e0e27a91d689b4b0980847659c841d7f9b7cfb98796afe45489815b2c167a2372f07917aa4b1cc18644c983e114f6390ad8d24db863b81d1b56bdcd0f900')
 
-prepare() {
-  cp -a pytest-xdist-$pkgver{,-py2}
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
-  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-}
-
 build() {
-  cd "$srcdir"/pytest-xdist-$pkgver
+  cd pytest-xdist-$pkgver
   python setup.py build
-
-  cd "$srcdir"/pytest-xdist-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   # Hack entry points by installing it
 
-  cd "$srcdir"/pytest-xdist-$pkgver
+  cd pytest-xdist-$pkgver
   python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test
-
-  cd "$srcdir"/pytest-xdist-$pkgver-py2
-  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" pytest
 }
 
-package_python-pytest-xdist() {
-  depends=('python-pytest-forked' 'python-execnet')
-
+package() {
   cd pytest-xdist-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
-package_python2-pytest-xdist() {
-  depends=('python2-pytest-forked' 'python2-execnet')
-
-  cd pytest-xdist-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list