Skip to content
Snippets Groups Projects
Commit 6431d4cb authored by Patrycja Rosa's avatar Patrycja Rosa :cat:
Browse files

testing/py3-pyautogui: build with gpep517

parent bc5c158e
No related branches found
No related tags found
No related merge requests found
......@@ -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="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment