dev-python/pytest-qt: enable py3.12

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Andrew Ammerlaan
2023-08-21 17:24:34 +02:00
parent 89f6989558
commit 0cc88bbc78
2 changed files with 24 additions and 3 deletions

View File

@@ -5,8 +5,9 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYTHON_COMPAT=( python3_{9..11} )
PYSIDE2_COMPAT=( python3_{8..10} )
PYTHON_COMPAT=( python3_{10..12} )
PYSIDE2_COMPAT=( python3_{10..11} )
PYSIDE6_COMPAT=( python3_{10..11} )
inherit distutils-r1 virtualx pypi
@@ -26,9 +27,17 @@ RDEPEND="
BDEPEND="
test? (
dev-python/PyQt5[gui,testlib,widgets,${PYTHON_USEDEP}]
amd64? (
dev-python/PyQt6[gui,testlib,widgets,${PYTHON_USEDEP}]
)
$(python_gen_cond_dep '
dev-python/pyside2[gui,testlib,widgets,${PYTHON_USEDEP}]
' "${PYSIDE2_COMPAT[@]}")
amd64? (
$(python_gen_cond_dep '
dev-python/pyside6[gui,testlib,widgets,${PYTHON_USEDEP}]
' "${PYSIDE6_COMPAT[@]}")
)
)
"
@@ -57,9 +66,17 @@ python_test() {
einfo "Testing with PyQt5"
PYTEST_QT_API="pyqt5" epytest || die
# Pyside2 is not compatible with python3.11
if use amd64; then
einfo "Testing with PyQt6"
PYTEST_QT_API="pyqt6" epytest || die
fi
# Pyside{2,6} is not compatible with python3.12
if has "${EPYTHON}" "${PYSIDE2_COMPAT[@]/_/.}"; then
einfo "Testing with PySide2"
PYTEST_QT_API="pyside2" epytest || die
fi
if use amd64 && has "${EPYTHON}" "${PYSIDE6_COMPAT[@]/_/.}"; then
einfo "Testing with PySide6"
PYTEST_QT_API="pyside6" epytest || die
fi
}

View File

@@ -17,6 +17,10 @@
#--- END OF EXAMPLES ---
# Andrew Ammerlaan <andrewammerlaan@gentoo.org> (2023-08-21)
# Mask testing on stable until we have stable qt6
dev-python/pytest-qt test
# Matt Jolly <matt.jolly@footclan.ninja> (2023-08-10)
# net-libs/ngtcp2 is not marked stable
net-misc/curl nghttp3