From c4ac79787a679c51f4e9c215deab8134d644be7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 24 Oct 2023 17:25:06 +0200 Subject: dev-python/matplotlib: Enable py3.12 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.8.0.ebuild | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'dev-python/matplotlib') diff --git a/dev-python/matplotlib/matplotlib-3.8.0.ebuild b/dev-python/matplotlib/matplotlib-3.8.0.ebuild index fff6fc97896d..ba6ab14f52cf 100644 --- a/dev-python/matplotlib/matplotlib-3.8.0.ebuild +++ b/dev-python/matplotlib/matplotlib-3.8.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) PYTHON_REQ_USE='tk?,threads(+)' inherit distutils-r1 flag-o-matic multiprocessing prefix pypi @@ -83,7 +83,7 @@ RDEPEND=" wxwidgets? ( $(python_gen_cond_dep ' dev-python/wxpython:*[${PYTHON_USEDEP}] - ' python3_{8..10}) + ' python3_{10..11}) ) " @@ -249,11 +249,20 @@ python_test() { tests/test_backends_interactive.py::test_webagg ) - [[ ${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'}]" - ) + case ${EPYTHON} in + 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'}]" + ) + ;; + python3.12) + EPYTEST_DESELECT+=( + tests/test_constrainedlayout.py::test_compressed1 + ) + ;; + esac case "${ABI}" in alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) -- cgit v1.2.3