mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-pymsgbox: build with gpep517
This commit is contained in:
parent
1219c29a2f
commit
40610e9f29
@ -3,13 +3,13 @@ pkgname=py3-pymsgbox
|
||||
pkgver=1.0.9
|
||||
# no actual tags
|
||||
_gitrev=ad76bd85a9cd2506a5417b82408c82ed60585421
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="Simple, cross-platform, pure Python module to display message boxes, and just message boxes"
|
||||
url="https://github.com/asweigart/PyMsgBox"
|
||||
arch="noarch"
|
||||
license="GPL-3.0-or-later"
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="xvfb-run"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$_gitrev.tar.gz::https://github.com/asweigart/PyMsgBox/archive/$_gitrev.tar.gz"
|
||||
@ -17,17 +17,20 @@ builddir="$srcdir/PyMsgBox-$_gitrev"
|
||||
options="!check" # circular with pyautogui
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
PYTHONPATH="$PWD/src" \
|
||||
xvfb-run -a \
|
||||
python3 tests/test_pymsgbox.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_pymsgbox.py
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user