Date: Friday, April 7, 2023 @ 12:54:50
  Author: felixonmars
Revision: 1441155

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-xprocess/repos/community-staging-any/PKGBUILD (from rev 
1441154, python-pytest-xprocess/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 12:54:50 UTC (rev 1441155)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <[email protected]>
+# Contributor: Hugo Osvaldo Barrera <[email protected]>
+# Contributor: Neil Santos <[email protected]>
+
+_name=pytest-xprocess
+pkgname=python-pytest-xprocess
+pkgver=0.22.2
+pkgrel=2
+pkgdesc='Pytest plugin to manage external processes across test runs.'
+arch=(any)
+url="https://github.com/pytest-dev/pytest-xprocess";
+license=(MIT)
+depends=(python-psutil python-py python-pytest)
+makedepends=(python-build python-installer python-setuptools-scm python-wheel)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('2051be110dfda8063c31bb9555bff569f5d7a1332a62f8ce57fd799dfc7d8551ba1227df12f44fccc1ec62d9fcc0face104a77c9c5cc1abb583b74cd1d8a9ff7')
+b2sums=('07b9fdfea2ecd3d3aaf4115c2f7ecd41c864b4490694cedc54460d0f16397ebdda0ac88fd9bd1613dcaec1cb9c36571b8ab2febc8d151f8f6c4e19fe3abd0821')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local _site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
+  cd $_name-$pkgver
+  # install to temporary location
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+  # issues with some tests at least since 0.18.1: 
https://github.com/pytest-dev/pytest-xprocess/issues/95
+  pytest -vv -k "not test_interruption_cleanup and not 
test_interruption_does_not_cleanup"
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm 644 {CHANGELOG,README}.rst -t "$pkgdir/usr/share/$pkgname/"
+}

Reply via email to