From 62d4484acd60bc9db808a99c03db1d31c279c0ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 5 Sep 2026 17:33:35 +0200 Subject: [PATCH] dev-python/flake8: Use EPYTEST_PLUGINS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/flake8/flake8-7.3.0.ebuild | 31 ++++++--------------------- 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/dev-python/flake8/flake8-7.3.0.ebuild b/dev-python/flake8/flake8-7.3.0.ebuild index 2152c421aa95e..fa2b397d6a26f 100644 --- a/dev-python/flake8/flake8-7.3.0.ebuild +++ b/dev-python/flake8/flake8-7.3.0.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) +PYTHON_COMPAT=( python3_{12..14} ) inherit distutils-r1 @@ -39,27 +39,10 @@ BDEPEND=" distutils_enable_sphinx docs/source \ dev-python/sphinx-prompt \ dev-python/sphinx-rtd-theme +EPYTEST_PLUGINS=() distutils_enable_tests pytest -python_test() { - local EPYTEST_DESELECT=( - # fails if additional flake8 plugins are installed - tests/integration/test_plugins.py::test_local_plugin_can_add_option - ) - case ${EPYTHON} in - pypy3*) - EPYTEST_DESELECT+=( - # problem from pyflakes: - # upstream aims only to support long dead pypy3.9 - # https://github.com/PyCQA/pyflakes/issues/779 - # https://github.com/PyCQA/pyflakes/pull/802 - # https://github.com/PyCQA/pyflakes/issues/828 - tests/integration/test_main.py::test_malformed_per_file_ignores_error - tests/integration/test_main.py::test_tokenization_error_but_not_syntax_error - tests/integration/test_main.py::test_tokenization_error_is_a_syntax_error - ) - ;; - esac - - epytest -} +EPYTEST_DESELECT=( + # fails if additional flake8 plugins are installed + tests/integration/test_plugins.py::test_local_plugin_can_add_option +)