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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0DB94138239 for ; Sun, 29 Mar 2020 09:29:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 60DD4E0B28; Sun, 29 Mar 2020 09:29:13 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3C277E0B28 for ; Sun, 29 Mar 2020 09:29:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1D7D834FAC6 for ; Sun, 29 Mar 2020 09:29:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 373321B9 for ; Sun, 29 Mar 2020 09:29:09 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1585474143.6c6ff2e8415071b9f2ce776a5619e271f84e75a4.Alessandro-Barbieri@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-1.3.1.ebuild dev-python/autoflake/metadata.xml X-VCS-Directories: dev-python/autoflake/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 6c6ff2e8415071b9f2ce776a5619e271f84e75a4 X-VCS-Branch: dev Date: Sun, 29 Mar 2020 09:29:09 +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: a675b1e2-25cb-46ea-82e8-8a0041008ee3 X-Archives-Hash: 7f8bd61b031ed16a16ab41739c6241c9 commit: 6c6ff2e8415071b9f2ce776a5619e271f84e75a4 Author: Alessandro Barbieri gmail com> AuthorDate: Sun Mar 29 09:27:19 2020 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Sun Mar 29 09:29:03 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6c6ff2e8 dev-python/autoflake: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri gmail.com> dev-python/autoflake/Manifest | 1 + dev-python/autoflake/autoflake-1.3.1.ebuild | 31 +++++++++++++++++++++++++++++ dev-python/autoflake/metadata.xml | 20 +++++++++++++++++++ 3 files changed, 52 insertions(+) diff --git a/dev-python/autoflake/Manifest b/dev-python/autoflake/Manifest new file mode 100644 index 0000000..a55e724 --- /dev/null +++ b/dev-python/autoflake/Manifest @@ -0,0 +1 @@ +DIST autoflake-1.3.1.tar.gz 19756 BLAKE2B 8a172888a8c44483b8771b59bebda841e55455f544197e2f1bce08dfb7cb3dd54e8a616a15a3712609480bc484561ffa27aaa93d9b5e1a573bb1960df96ea9cf SHA512 763bcfc824412129901106ddcaf7104a2bfa5ee86b43d2822b51af5532ea0ac46466b64a004c099dc6fa2a96b23ae959e1ef1eb68c6be0c1e4c08ab9bf174e08 diff --git a/dev-python/autoflake/autoflake-1.3.1.ebuild b/dev-python/autoflake/autoflake-1.3.1.ebuild new file mode 100644 index 0000000..752b394 --- /dev/null +++ b/dev-python/autoflake/autoflake-1.3.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Removes unused imports and unused variables as reported by pyflakes" +HOMEPAGE=" + https://github.com/myint/autoflake + https://pypi.org/project/autoflake +" +SRC_URI="https://github.com/myint/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + >=dev-python/pyflakes-1.1.0[${PYTHON_USEDEP}] +" +RDEPEND="${DEPEND}" + +python_test() { + "${EPYTHON}" test_autoflake.py || die +} diff --git a/dev-python/autoflake/metadata.xml b/dev-python/autoflake/metadata.xml new file mode 100644 index 0000000..3fe5b4f --- /dev/null +++ b/dev-python/autoflake/metadata.xml @@ -0,0 +1,20 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +autoflake removes unused imports and unused variables from Python code. It makes use of pyflakes to do this. + +By default, autoflake only removes unused imports for modules that are part of the standard library. (Other modules may have side effects that make them unsafe to remove automatically.) Removal of unused variables is also disabled by default. + +autoflake also removes useless pass statements. + + + myint/autoflake + autoflake + +