commit: f29c6b993b40bc4621294a5ca8ed781b5f8a279c Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> AuthorDate: Wed May 25 10:48:06 2022 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Wed Jun 8 19:15:19 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f29c6b99
dev-python/pytest-qt: enable py3.11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> dev-python/pytest-qt/pytest-qt-4.0.2-r1.ebuild | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dev-python/pytest-qt/pytest-qt-4.0.2-r1.ebuild b/dev-python/pytest-qt/pytest-qt-4.0.2-r1.ebuild index 11a6bd58b0a3..cddbe0810ddd 100644 --- a/dev-python/pytest-qt/pytest-qt-4.0.2-r1.ebuild +++ b/dev-python/pytest-qt/pytest-qt-4.0.2-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit distutils-r1 virtualx @@ -22,7 +22,9 @@ RDEPEND="dev-python/QtPy[gui,testlib,widgets(+),${PYTHON_USEDEP}]" BDEPEND=" test? ( dev-python/PyQt5[gui,testlib,widgets,${PYTHON_USEDEP}] - dev-python/pyside2[gui,testlib,widgets,${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pyside2[gui,testlib,widgets,${PYTHON_USEDEP}] + ' python3_{8..10} ) ) " @@ -50,5 +52,8 @@ python_test() { ) PYTEST_QT_API="pyqt5" epytest || die - PYTEST_QT_API="pyside2" epytest || die + # Pyside2 is not compatible with python3.11 + if [[ "${EPYTHON}" != python3.11 ]]; then + PYTEST_QT_API="pyside2" epytest || die + fi }