[arch-commits] Commit in python-pytest-xprocess/repos/community-any (2 files)

David Runge dvzrv at gemini.archlinux.org
Tue Jun 7 15:47:35 UTC 2022


    Date: Tuesday, June 7, 2022 @ 15:47:35
  Author: dvzrv
Revision: 1228485

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-07 15:47:27 UTC (rev 1228484)
+++ PKGBUILD	2022-06-07 15:47:35 UTC (rev 1228485)
@@ -1,35 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
-# Contributor: Neil Santos <nsantos16+aur at gmail.com>
-
-_name=pytest-xprocess
-pkgname=python-pytest-xprocess
-pkgver=0.18.1
-pkgrel=3
-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-pytest')
-makedepends=('python-setuptools-scm')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('f19cba9954e4b2363db13b7dba373f5e50cfca6f43d6455f271bff4d01dcc2a3b15c13a47076dbeed34feffee856a8271df4837edab413e964a848cbb6228e7e')
-b2sums=('9772fff488414406f487add01fba9ee2e10e12965d5b289b8c17cffb5a6566aaea0653ca1b390e6b4c70d79ce3698b0ce8122ed919f9778cb8cf3f7488cffc8d')
-
-build() {
-  cd "${_name}-${pkgver}"
-  python setup.py build
-}
-
-check() {
-  cd "${_name}-${pkgver}"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  pytest -v -k "not test_interruption_cleanup and not test_interruption_does_not_cleanup"
-}
-
-package() {
-  cd "${_name}-${pkgver}"
-  python setup.py install --optimize=1 --root="${pkgdir}"
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -vDm 644 {CHANGELOG,README}.rst -t "${pkgdir}/usr/share/${pkgname}"
-}

Copied: python-pytest-xprocess/repos/community-any/PKGBUILD (from rev 1228484, python-pytest-xprocess/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-07 15:47:35 UTC (rev 1228485)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
+# Contributor: Neil Santos <nsantos16+aur at gmail.com>
+
+_name=pytest-xprocess
+pkgname=python-pytest-xprocess
+pkgver=0.19.0
+pkgrel=1
+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-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=('d41c3c91892d6126455e9b834ada7aad5d0fa67603eff14a73309589e269a21de032e8192e9bde4d6656aaa4984dd0c98242d54b0e2b24a43b85c8ed81a00d89')
+b2sums=('1990a48036469f990451b8eb12a05b7f10295532a72567f95d95d6e12f192f0b76bd511a994c5b8f0e3725f0edb76c4991351fe68e82f351d9b47a9921230f11')
+
+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/"
+}



More information about the arch-commits mailing list