diff --git a/testing/py3-pyautogui/APKBUILD b/testing/py3-pyautogui/APKBUILD index a63b7cc2321..2207930039f 100644 --- a/testing/py3-pyautogui/APKBUILD +++ b/testing/py3-pyautogui/APKBUILD @@ -5,7 +5,7 @@ _pkgname=PyAutoGUI # upstream does not tag releases https://github.com/asweigart/pyautogui/issues/270 _commit=9de7b3ebf8817a846b03caec0775ecbf4596452b pkgver=0.9.53 -pkgrel=4 +pkgrel=5 pkgdesc="A cross-platform Python module for GUI automation for human beings" url="https://pyautogui.readthedocs.io/" arch="noarch" @@ -18,7 +18,7 @@ depends=" py3-xlib python3 " -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517" checkdepends="xvfb-run" subpackages="$pkgname-pyc" source="$_pkgname-$_commit.tar.gz::https://github.com/asweigart/pyautogui/archive/$_commit.tar.gz" @@ -29,17 +29,20 @@ replaces="py-pyautogui" # Backwards compatibility provides="py-pyautogui=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - PYTHONPATH="$PWD" \ - xvfb-run -a \ - python3 tests/test_pyautogui.py + python3 -m venv --clear --without-pip --system-site-packages .testenv + gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl + xvfb-run -a .testenv/bin/python3 tests/test_pyautogui.py } package() { - python3 setup.py install --skip-build --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" \ + .dist/*.whl } sha512sums="