[arch-commits] Commit in python-qdarkstyle/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Sun Apr 4 10:48:51 UTC 2021


    Date: Sunday, April 4, 2021 @ 10:48:34
  Author: archange
Revision: 911740

upgpkg: python-qdarkstyle 3.0.2-1

Modified:
  python-qdarkstyle/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-04 10:18:52 UTC (rev 911739)
+++ PKGBUILD	2021-04-04 10:48:34 UTC (rev 911740)
@@ -2,8 +2,8 @@
 
 _pkg=QDarkStyle
 pkgname=python-${_pkg,,}
-pkgver=2.8.1
-pkgrel=3
+pkgver=3.0.2
+pkgrel=1
 pkgdesc="Dark style sheet for QtWidgets application"
 arch=(any)
 url="https://github.com/ColinDuquesnoy/QDarkStyleSheet"
@@ -10,11 +10,11 @@
 license=(MIT CCPL)
 depends=(python-helpdev python-qtpy)
 makedepends=(python-setuptools)
-checkdepends=(python-pyqt5 pyside2)
+checkdepends=(python-pyqt5 pyside2 python-pytest python-pytest-qt)
 # Pypi tarballs do not provide tests files anymore
 #source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
 source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('bc2f8d2b3644ed660c1267cba314df80a08ddaf28c1b7f701f6cdd6f44f70fdb')
+sha256sums=('a0c13508d2bf0f4919abb9cb5e4c3c8daa768b5da7232af313aeb194d3a61a2f')
 
 build() {
   cd ${_pkg}Sheet-${pkgver}
@@ -24,11 +24,10 @@
 check() {
   cd ${_pkg}Sheet-${pkgver}
   # PyQt5 tests
-  python example/example.py --qt_from=pyqt5 --test
-  python example/example.py --qt_from=pyqt5 --test --no_dark
-  # PySide2 tests
-  python example/example.py --qt_from=pyside2 --test
-  python example/example.py --qt_from=pyside2 --test --no_dark
+  python -m qdarkstyle.example --qt_from=pyqt5 --test --offscreen
+  # PySide2 tests, https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/275
+  sed -i 's|dw_buttons.checkBoxTristate.setCheckState(1)|dw_buttons.checkBoxTristate.setCheckState(QtCore.Qt.Unchecked)|' qdarkstyle/example/__main__.py
+  python -m qdarkstyle.example --qt_from=pyside2 --test --offscreen
 }
 
 package() {



More information about the arch-commits mailing list