Date: Friday, February 4, 2022 @ 14:04:42 Author: archange Revision: 1125450
upgpkg: pyzo 4.12.0-1 Modified: pyzo/trunk/PKGBUILD ----------+ PKGBUILD | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-02-04 14:04:42 UTC (rev 1125449) +++ PKGBUILD 2022-02-04 14:04:42 UTC (rev 1125450) @@ -2,13 +2,13 @@ # Contributor: Hector Mtz-Seara <hseara.#at#.gmail*.*com> pkgname=pyzo -pkgver=4.11.4 -pkgrel=2 +pkgver=4.12.0 +pkgrel=1 pkgdesc="Cross-platform Python IDE focused on interactivity and introspection, very suitable for scientific computing." arch=(any) url="https://pyzo.org" license=(BSD) -depends=(python) +depends=(python-packaging) makedepends=(python-setuptools) optdepends=( 'pyside2: Qt5 backend' @@ -16,16 +16,26 @@ 'python-pyqt5: alternative Qt5 backend' 'python-pyqt6: alternative Qt6 backend' ) +checkdepends=(python-pytest pyside2 pyside6 python-pyqt5 python-pyqt6 xorg-server-xvfb) source=(https://github.com/pyzo/pyzo/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) -sha256sums=('612b778bf73130b3dbffe622b5f16dbfee749becbb004d7cd55f749b38969b24') +sha256sums=('55bc7955e391573a9c82272fc296816ff6f9b9caa992f4a610037b546f91c5df') -build(){ +build() { cd ${pkgname}-${pkgver} python setup.py build } -package(){ +check() { cd ${pkgname}-${pkgver} + python -m venv --system-site-packages test-env + test-env/bin/python setup.py install --skip-build + test-env/bin/python -m pytest -v --color=yes tests + xvfb-run --auto-servernum test-env/bin/python pyzolauncher.py --test + test-env/bin/python tests/check_log.py +} + +package() { + cd ${pkgname}-${pkgver} python setup.py install --root="${pkgdir}" --optimize=1 --skip-build # Clean
