Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages /
python-pytest-qt
Commits:
04f186bb by Antonio Rojas at 2026-02-11T18:04:51+01:00
upgpkg: 4.4.0-6: Run tests with Qt6, switch to PEP517
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,13 +1,14 @@
pkgbase = python-pytest-qt
pkgdesc = pytest support for PyQt and PySide applications
pkgver = 4.4.0
- pkgrel = 5
+ pkgrel = 6
url = https://github.com/pytest-dev/pytest-qt
arch = any
license = MIT
- checkdepends = python-pyqt5
- checkdepends = xorg-server-xvfb
+ checkdepends = python-pyqt6
makedepends = python-setuptools-scm
+ makedepends = python-build
+ makedepends = python-installer
depends = python-pytest
source =
https://files.pythonhosted.org/packages/source/p/pytest-qt/pytest-qt-4.4.0.tar.gz
sha512sums =
57c6a1866c7685db5301faa42298f11ef3d3a030cbc72fb109a8d6166621625fac89365671f781e5c3d652a190567bec3bae6f12cdab20812f43c7ef8e4518fa
=====================================
PKGBUILD
=====================================
@@ -3,29 +3,29 @@
_name=pytest-qt
pkgname=python-pytest-qt
pkgver=4.4.0
-pkgrel=5
+pkgrel=6
pkgdesc='pytest support for PyQt and PySide applications'
arch=(any)
license=('MIT')
url='https://github.com/pytest-dev/pytest-qt'
depends=('python-pytest')
-makedepends=('python-setuptools-scm')
-checkdepends=('python-pyqt5' 'xorg-server-xvfb')
+makedepends=('python-setuptools-scm' 'python-build' 'python-installer')
+checkdepends=('python-pyqt6')
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
sha512sums=('57c6a1866c7685db5301faa42298f11ef3d3a030cbc72fb109a8d6166621625fac89365671f781e5c3d652a190567bec3bae6f12cdab20812f43c7ef8e4518fa')
build() {
cd ${_name}-$pkgver
- python setup.py build
+ python -m build --wheel --no-isolation
}
check() {
cd ${_name}-$pkgver/src
- PYTHONPATH=. PYTEST_QT_API=pyqt5 xvfb-run pytest --fixtures pytestqt ../tests
+ PYTHONPATH="$PWD" PYTEST_QT_API=pyqt6 QT_QPA_PLATFORM='offscreen' pytest
--fixtures pytestqt ../tests
}
package() {
cd ${_name}-$pkgver
- python setup.py install -O1 --root="${pkgdir}" --skip-build
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-qt/-/commit/04f186bb26f506d2a845b50ae31c90745d1c8839
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-qt/-/commit/04f186bb26f506d2a845b50ae31c90745d1c8839
You're receiving this email because of your account on gitlab.archlinux.org.