commit: 459b2ca3ccc6715b14004ec445f1b8848c10f07e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 11 03:10:20 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb 11 03:23:43 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=459b2ca3
dev-python/qtconsole: Bump to 5.7.1
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/qtconsole/Manifest | 1 +
dev-python/qtconsole/qtconsole-5.7.1.ebuild | 75 +++++++++++++++++++++++++++++
2 files changed, 76 insertions(+)
diff --git a/dev-python/qtconsole/Manifest b/dev-python/qtconsole/Manifest
index a35e01af1ca1..f64aad833651 100644
--- a/dev-python/qtconsole/Manifest
+++ b/dev-python/qtconsole/Manifest
@@ -1,2 +1,3 @@
DIST qtconsole-5.6.1.tar.gz 435808 BLAKE2B
74476bfa85e08dfdd3bb0595531253638957024a2a5c9ec16e5eefa3677cf57756ddacdbf21405e93da1b5101bb4a354970ef86c786db02c52ca92e40877bbc0
SHA512
1bc2cf75019186ad439033ca7e262fb0e3172336b15573fec1da4925830c26f33117229f7552cdd26a3691b0c9facaf0073c640aea8098c3599aed38e7621392
DIST qtconsole-5.7.0.tar.gz 436635 BLAKE2B
fac7cff969337f4f2d7f7450e91f15761512017e209a1a61f38fbc1da5007a7df0e48f801336002ee123889dc1af41fdc001b4ed579ac4264c1dc1ae4219da3e
SHA512
597d977d0dcd4895fc1ad0adfdfde6acad8a50ee0d94a9747b5cdfef5b9a43af5aa105c866a06ccddf059b67ec09bbb963f6189aa0336e56e41d918950c030c8
+DIST qtconsole-5.7.1.tar.gz 436262 BLAKE2B
545e615fa2799a31d726030809cc82c981611521610eda195093938f280bbdf38734d35598375ed89dcd40d6041a49179e8cad2765d2b582e6ffc7d95ad2bf1a
SHA512
ac4d1004738f3588fc5cf5bc1def5312f36af25f4b327a449e7a61987fc8b3f4060def28a3d0ffc20fd52b49c63c20be087e25ffe633e7dc03065d23c05365e5
diff --git a/dev-python/qtconsole/qtconsole-5.7.1.ebuild
b/dev-python/qtconsole/qtconsole-5.7.1.ebuild
new file mode 100644
index 000000000000..18a54af5a371
--- /dev/null
+++ b/dev-python/qtconsole/qtconsole-5.7.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..14} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1 pypi virtualx
+
+DESCRIPTION="Qt-based console for Jupyter with support for rich media output"
+HOMEPAGE="
+ https://www.spyder-ide.org/
+ https://github.com/spyder-ide/qtconsole/
+ https://pypi.org/project/qtconsole/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
+
+RDEPEND="
+ >=dev-python/ipykernel-4.1[${PYTHON_USEDEP}]
+ dev-python/jupyter-core[${PYTHON_USEDEP}]
+ >=dev-python/jupyter-client-4.1.1[${PYTHON_USEDEP}]
+ dev-python/packaging[${PYTHON_USEDEP}]
+ dev-python/pygments[${PYTHON_USEDEP}]
+ >=dev-python/traitlets-5.2.2_p1[${PYTHON_USEDEP}]
+ >=dev-python/qtpy-2.4.0[${PYTHON_USEDEP},gui,printsupport,svg]
+"
+BDEPEND="
+ test? (
+ dev-python/qtpy[${PYTHON_USEDEP},svg,testlib]
+ )
+"
+
+PDEPEND="
+ dev-python/ipython[${PYTHON_USEDEP}]
+"
+
+distutils_enable_sphinx docs/source dev-python/sphinx-rtd-theme
+
+EPYTEST_PLUGINS=( pytest-{asyncio,qt} )
+EPYTEST_RERUNS=10
+distutils_enable_tests pytest
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # remove upstream marks to let us override rerun count
+ # (this test suite is extremely flaky)
+ # https://github.com/pytest-dev/pytest-rerunfailures/issues/306
+ sed -i -e '/pytest\.mark\.flaky/d' qtconsole/tests/*.py || die
+}
+
+src_test() {
+ virtx distutils-r1_src_test
+}
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # TODO; expects exact HTML, so perhaps fragile
+
qtconsole/tests/test_jupyter_widget.py::TestJupyterWidget::test_other_output
+ )
+ local -x QT_API
+ for QT_API in pyqt5 pyqt6 pyside2 pyside6; do
+ if has_version "dev-python/qtpy[${QT_API}]"; then
+ local -x PYTEST_QT_API=${QT_API}
+ einfo "Testing with ${QT_API}"
+ nonfatal epytest ||
+ die "Tests failed with ${EPYTHON} / ${QT_API}"
+ fi
+ done
+}