Date: Wednesday, April 5, 2023 @ 17:41:32
  Author: felixonmars
Revision: 1437829

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-xdist/repos/community-staging-any/
  python-pytest-xdist/repos/community-staging-any/PKGBUILD
    (from rev 1437828, python-pytest-xdist/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: python-pytest-xdist/repos/community-staging-any/PKGBUILD (from rev 
1437828, python-pytest-xdist/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-05 17:41:32 UTC (rev 1437829)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-xdist
+pkgver=3.2.1
+_commit=b591be4868e5d85de5a98e72d6aa64f7dedbcb28
+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=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 
'python-wheel')
+checkdepends=('python-filelock' 'python-psutil')
+source=("git+https://github.com/pytest-dev/pytest-xdist.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+build() {
+  cd pytest-xdist
+  python -m build -nw
+}
+
+check() {
+  # Hack entry points by installing it
+
+  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
+}
+
+package() {
+  cd pytest-xdist
+  python -m installer -d "$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to