mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-pyautogui: build with gpep517
This commit is contained in:
parent
bc5c158ef1
commit
6431d4cb13
@ -5,7 +5,7 @@ _pkgname=PyAutoGUI
|
|||||||
# upstream does not tag releases https://github.com/asweigart/pyautogui/issues/270
|
# upstream does not tag releases https://github.com/asweigart/pyautogui/issues/270
|
||||||
_commit=9de7b3ebf8817a846b03caec0775ecbf4596452b
|
_commit=9de7b3ebf8817a846b03caec0775ecbf4596452b
|
||||||
pkgver=0.9.53
|
pkgver=0.9.53
|
||||||
pkgrel=4
|
pkgrel=5
|
||||||
pkgdesc="A cross-platform Python module for GUI automation for human beings"
|
pkgdesc="A cross-platform Python module for GUI automation for human beings"
|
||||||
url="https://pyautogui.readthedocs.io/"
|
url="https://pyautogui.readthedocs.io/"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
@ -18,7 +18,7 @@ depends="
|
|||||||
py3-xlib
|
py3-xlib
|
||||||
python3
|
python3
|
||||||
"
|
"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="xvfb-run"
|
checkdepends="xvfb-run"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$_pkgname-$_commit.tar.gz::https://github.com/asweigart/pyautogui/archive/$_commit.tar.gz"
|
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
|
provides="py-pyautogui=$pkgver-r$pkgrel" # Backwards compatibility
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
PYTHONPATH="$PWD" \
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
xvfb-run -a \
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
python3 tests/test_pyautogui.py
|
xvfb-run -a .testenv/bin/python3 tests/test_pyautogui.py
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
Loading…
Reference in New Issue
Block a user