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 48C6E1581D3 for ; Tue, 14 May 2024 22:45:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7EFA2E2A17; Tue, 14 May 2024 22:45:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6551DE2A17 for ; Tue, 14 May 2024 22:45:16 +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 1B899335C52 for ; Tue, 14 May 2024 22:45:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 754C7115D for ; Tue, 14 May 2024 22:45:13 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1715724831.0e0445e817d79552041c60cdd8d35eca2cb36858.julien@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/Manifest dev-python/autoflake/autoflake-2.3.1.ebuild X-VCS-Directories: dev-python/autoflake/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 0e0445e817d79552041c60cdd8d35eca2cb36858 X-VCS-Branch: dev Date: Tue, 14 May 2024 22:45:13 +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: 8c00ea96-ddee-426c-bfea-1ecf359c2feb X-Archives-Hash: 8dad215ebc9c99eea99801b3df88e9b7 Message-ID: <20240514224513.rUNRkxlCEkJeu6u0Aw8nkVROgoreWAsvME37ZtqElcY@z> commit: 0e0445e817d79552041c60cdd8d35eca2cb36858 Author: Julien Roy jroy ca> AuthorDate: Tue May 14 22:13:51 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Tue May 14 22:13:51 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0e0445e8 dev-python/autoflake: add 2.3.1 Closes: https://bugs.gentoo.org/931370 Signed-off-by: Julien Roy jroy.ca> dev-python/autoflake/Manifest | 1 + dev-python/autoflake/autoflake-2.3.1.ebuild | 30 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/dev-python/autoflake/Manifest b/dev-python/autoflake/Manifest index 2de21f6c25..291c102604 100644 --- a/dev-python/autoflake/Manifest +++ b/dev-python/autoflake/Manifest @@ -1 +1,2 @@ DIST autoflake-2.2.1.tar.gz 27377 BLAKE2B d669fd1954974f7237423d7dc67de044d737ba5a462b565f3307f1b6bdecefa6a6b2a6de437570e6a7772a692e894fb414e1ff05fc0aae7cbb3a0901ec9a0129 SHA512 02021b5f92edcdcb0b3c11132a46cf73dbc4b6e4efc4f5d5981b66bc5beafbef66a81229e65a727816ebda419c93399df14e9b6ba9f38a728f95a3455c1089f9 +DIST autoflake-2.3.1.tar.gz 27642 BLAKE2B 5002b404c39a5a1e18c5dc6e8a70f958b9d02e412b9320ba4b801b1a20427110cd15363bb3e4acb25de4ceca77ce86d49c1c36cef5ba3e886fecffb996ef7b81 SHA512 bad9a34f253e1182f3128867eb8699c8c02b99f35479c1b65669f0411d7dff29fe477a267d0398e60a5e833530ace3cf28443a4b2a8924bd019447cc7ee8ab08 diff --git a/dev-python/autoflake/autoflake-2.3.1.ebuild b/dev-python/autoflake/autoflake-2.3.1.ebuild new file mode 100644 index 0000000000..8612868bce --- /dev/null +++ b/dev-python/autoflake/autoflake-2.3.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_USE_PEP517=hatchling + +inherit distutils-r1 pypi + +DESCRIPTION="Removes unused imports and unused variables from Python code" +HOMEPAGE="https://github.com/PyCQA/autoflake/ https://pypi.org/project/autoflake/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=dev-python/tomli-2.0.1 + >=dev-python/pyflakes-3.0.0" + +distutils_enable_tests unittest + +src_prepare() { + sed -Ei -e '/include/,/]/ { /(test_.*|LICENSE|README)/d }' pyproject.toml || die "Sed failed :-(" + default +} + +python_test() { + # unit test + eunittest -p "test_autoflake.py" +}