[arch-commits] Commit in python-pytest-xprocess/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Tue Jun 7 15:47:27 UTC 2022
Date: Tuesday, June 7, 2022 @ 15:47:27
Author: dvzrv
Revision: 1228484
upgpkg: python-pytest-xprocess 0.19.0-1: Upgrade to 0.19.0.
Remove unnecessary quotes and curly braces.
Switch to PEP517.
Leave comment upstream about disabled/broken tests: https://github.com/pytest-dev/pytest-xprocess/issues/95
Modified:
python-pytest-xprocess/trunk/PKGBUILD
----------+
PKGBUILD | 41 +++++++++++++++++++++++------------------
1 file changed, 23 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-07 15:32:54 UTC (rev 1228483)
+++ PKGBUILD 2022-06-07 15:47:27 UTC (rev 1228484)
@@ -4,32 +4,37 @@
_name=pytest-xprocess
pkgname=python-pytest-xprocess
-pkgver=0.18.1
-pkgrel=3
+pkgver=0.19.0
+pkgrel=1
pkgdesc='Pytest plugin to manage external processes across test runs.'
-arch=('any')
+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')
+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 setup.py build
+ cd $_name-$pkgver
+ python -m build --wheel --no-isolation
}
check() {
- cd "${_name}-${pkgver}"
- export PYTHONPATH="build:${PYTHONPATH}"
- pytest -v -k "not test_interruption_cleanup and not test_interruption_does_not_cleanup"
+ 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 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}"
+ 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