From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A76B4158015 for ; Sat, 30 Dec 2023 17:30:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C78BF2BC02D; Sat, 30 Dec 2023 17:30:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B1B9D2BC02D for ; Sat, 30 Dec 2023 17:30:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BA2E7335DC3 for ; Sat, 30 Dec 2023 17:30:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F1A2C141 for ; Sat, 30 Dec 2023 17:30:40 +0000 (UTC) From: "Tomás Carvalho" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tomás Carvalho" Message-ID: <1703957393.9079af58bbde16d12e501efca9e1f008c1171bc1.tomas@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/autoflake/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/autoflake/autoflake-2.2.1.ebuild X-VCS-Directories: dev-python/autoflake/ X-VCS-Committer: tomas X-VCS-Committer-Name: Tomás Carvalho X-VCS-Revision: 9079af58bbde16d12e501efca9e1f008c1171bc1 X-VCS-Branch: dev Date: Sat, 30 Dec 2023 17:30:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 84114ad7-9467-421c-b984-3253863105d0 X-Archives-Hash: f6f20339b8931a3627b1136b79e04c9c commit: 9079af58bbde16d12e501efca9e1f008c1171bc1 Author: Tomás Carvalho thetimesweeper com> AuthorDate: Sat Dec 30 17:28:37 2023 +0000 Commit: Tomás Carvalho thetimesweeper com> CommitDate: Sat Dec 30 17:29:53 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9079af58 dev-python/autoflake: disable py3.12 Signed-off-by: Tomás Carvalho thetimesweeper.com> 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" }