From 9079af58bbde16d12e501efca9e1f008c1171bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Carvalho?= Date: Sat, 30 Dec 2023 17:28:37 +0000 Subject: [PATCH] dev-python/autoflake: disable py3.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Carvalho --- dev-python/autoflake/autoflake-2.2.1.ebuild | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/dev-python/autoflake/autoflake-2.2.1.ebuild b/dev-python/autoflake/autoflake-2.2.1.ebuild index c3b7702a20..9277cdd5b4 100644 --- a/dev-python/autoflake/autoflake-2.2.1.ebuild +++ b/dev-python/autoflake/autoflake-2.2.1.ebuild @@ -1,9 +1,8 @@ # Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 - EAPI=8 -PYTHON_COMPAT=( python3_{8..12} ) +PYTHON_COMPAT=( python3_{8..11} ) DISTUTILS_USE_PEP517=hatchling inherit distutils-r1 pypi @@ -18,10 +17,14 @@ KEYWORDS="~amd64" RDEPEND=">=dev-python/tomli-2.0.1 >=dev-python/pyflakes-3.0.0" -#pypi tarbal does not include tests -RESTRICT="test" +distutils_enable_tests unittest src_prepare() { - eapply_user - sed -Ei -e '/include/,/]/ { /(test_.*|LICENSE|README)/d }' pyproject.toml || die "Sed failed :-(" + sed -Ei -e '/include/,/]/ { /(test_.*|LICENSE|README)/d }' pyproject.toml || die "Sed failed :-(" + default +} + +python_test() { + # unit test + eunittest -p "test_autoflake.py" }