Date: Wednesday, July 20, 2022 @ 09:04:01 Author: dvzrv Revision: 1254830
upgpkg: python-ansible-compat 2.2.0-1: Upgrade to 2.2.0. Install to temporary location for tests. Modified: python-ansible-compat/trunk/PKGBUILD ----------+ PKGBUILD | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-07-20 08:35:59 UTC (rev 1254829) +++ PKGBUILD 2022-07-20 09:04:01 UTC (rev 1254830) @@ -2,7 +2,7 @@ _name=ansible-compat pkgname=python-ansible-compat -pkgver=2.1.0 +pkgver=2.2.0 pkgrel=1 pkgdesc="Functions that help interacting with various versions of Ansible" arch=(any) @@ -12,8 +12,8 @@ makedepends=(python-build python-installer python-setuptools-scm python-setuptools-scm-git-archive python-wheel) checkdepends=(ansible python-flaky python-pytest python-pytest-mock) source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz) -sha256sums=('62bae1bb5c20663d5ee1bfec04f073c08be721040af9ef5bddc7904e6678d184') -b2sums=('5ac74cdaef1c932094996f331ed94418836b3351cbd376ae35ef22046b68dad0a8ab68fd293015db9954e0a5e1df4b5c529b3845cee5778daed2bb207733ca4f') +sha256sums=('676db8ec0449d1f07038625b8ebb8ceef5f8ad3a1af3ee82d4ed66b9b04cb6fa') +b2sums=('dbe74d23d2f2e4275bd9df2303417ea83517e780e65c6a34bd6ae1022be265ac816b50b309fc45f88e0c7fac7d7a22c83a826cc15be050698a6f35b267a36ac3') build() { cd $_name-$pkgver @@ -21,8 +21,12 @@ } check() { + local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + cd $_name-$pkgver - export PYTHONPATH="build/lib:$PYTHONPATH" + # install to temporary location, as importlib is used + python -m installer --destdir=test_dir dist/*.whl + export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH" pytest -v -c /dev/null }