* [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-qt/, profiles/arch/amd64/
@ 2023-08-21 15:26 Andrew Ammerlaan
0 siblings, 0 replies; only message in thread
From: Andrew Ammerlaan @ 2023-08-21 15:26 UTC (permalink / raw
To: gentoo-commits
commit: 0cc88bbc789541e2f9d4b2162b0cfb140529e2c8
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 21 15:24:34 2023 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Aug 21 15:26:14 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cc88bbc
dev-python/pytest-qt: enable py3.12
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
dev-python/pytest-qt/pytest-qt-4.2.0.ebuild | 23 ++++++++++++++++++++---
profiles/arch/amd64/package.use.stable.mask | 4 ++++
2 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/dev-python/pytest-qt/pytest-qt-4.2.0.ebuild b/dev-python/pytest-qt/pytest-qt-4.2.0.ebuild
index 81b76782132f..5c321c7bdf1f 100644
--- a/dev-python/pytest-qt/pytest-qt-4.2.0.ebuild
+++ b/dev-python/pytest-qt/pytest-qt-4.2.0.ebuild
@@ -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
}
diff --git a/profiles/arch/amd64/package.use.stable.mask b/profiles/arch/amd64/package.use.stable.mask
index 9f702cca9700..f2195e3d8fbe 100644
--- a/profiles/arch/amd64/package.use.stable.mask
+++ b/profiles/arch/amd64/package.use.stable.mask
@@ -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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-21 15:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-21 15:26 [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-qt/, profiles/arch/amd64/ Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox