From e8d080443a4a1c791446edbf766b408d32df5e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 3 Jul 2022 13:59:53 +0200 Subject: dev-python/matplotlib: Enable py3.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/matplotlib/matplotlib-3.5.2-r3.ebuild | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'dev-python/matplotlib/matplotlib-3.5.2-r3.ebuild') diff --git a/dev-python/matplotlib/matplotlib-3.5.2-r3.ebuild b/dev-python/matplotlib/matplotlib-3.5.2-r3.ebuild index e154653a5a4d..d62922e0914d 100644 --- a/dev-python/matplotlib/matplotlib-3.5.2-r3.ebuild +++ b/dev-python/matplotlib/matplotlib-3.5.2-r3.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{8..11} ) PYTHON_REQ_USE='tk?,threads(+)' inherit distutils-r1 flag-o-matic multiprocessing prefix toolchain-funcs \ @@ -80,7 +80,9 @@ RDEPEND=" >=www-servers/tornado-6.0.4[${PYTHON_USEDEP}] ) wxwidgets? ( - dev-python/wxpython:*[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/wxpython:*[${PYTHON_USEDEP}] + ' python3_{8..10}) ) " @@ -247,6 +249,11 @@ python_test() { "tests/test_rcparams.py::test_validator_invalid[validate_strlist-arg7-MatplotlibDeprecationWarning]" tests/test_testing.py::test_warn_to_fail ) + [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=( + # https://github.com/matplotlib/matplotlib/issues/23384 + "tests/test_backends_interactive.py::test_figure_leak_20490[time_mem1-{'MPLBACKEND': 'qtagg', 'QT_API': 'PyQt5'}]" + "tests/test_backends_interactive.py::test_figure_leak_20490[time_mem1-{'MPLBACKEND': 'qtcairo', 'QT_API': 'PyQt5'}]" + ) # we need to rebuild mpl against bundled freetype, otherwise # over 1000 tests will fail because of mismatched font rendering -- cgit v1.2.3