summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-05 13:55:23 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-05 13:56:05 +0200
commit7c5b36b5cd3a90955d51a8c044313a126d633a07 (patch)
tree2d816f82324c7c86ad96fec916f4f44337821c3f /dev-python/qtawesome
parentmedia-gfx/freecad: use the shiboken2 that matches python version (diff)
downloadgentoo-7c5b36b5cd3a90955d51a8c044313a126d633a07.tar.gz
gentoo-7c5b36b5cd3a90955d51a8c044313a126d633a07.tar.bz2
gentoo-7c5b36b5cd3a90955d51a8c044313a126d633a07.zip
dev-python/qtawesome: restrict dependency on pytest-qt to <4
Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python/qtawesome')
-rw-r--r--dev-python/qtawesome/qtawesome-1.0.2.ebuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/dev-python/qtawesome/qtawesome-1.0.2.ebuild b/dev-python/qtawesome/qtawesome-1.0.2.ebuild
index 135fd3162ca5..b2805bcbc5fa 100644
--- a/dev-python/qtawesome/qtawesome-1.0.2.ebuild
+++ b/dev-python/qtawesome/qtawesome-1.0.2.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{7..9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1 virtualx
@@ -21,16 +21,22 @@ KEYWORDS="amd64 x86"
RDEPEND="
media-fonts/fontawesome
- dev-python/QtPy[${PYTHON_USEDEP},gui]
+ dev-python/QtPy[pyqt5(+),gui,${PYTHON_USEDEP}]
"
-DEPEND="test? ( dev-python/pytest-qt[${PYTHON_USEDEP}] )"
+DEPEND="test? ( <dev-python/pytest-qt-4[${PYTHON_USEDEP}] )"
S="${WORKDIR}/${MY_P}"
distutils_enable_tests pytest
distutils_enable_sphinx docs/source
+src_test() {
+ virtx python_foreach_impl python_test
+}
+
python_test() {
- virtx pytest -vv
+ # Tests fail with pyside2, so depend on QtPy[pyqt5] and explicitly run
+ # the tests with pyqt5
+ PYTEST_QT_API="pyqt5" epytest
}