aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2020-03-29 11:27:19 +0200
committerAlessandro Barbieri <lssndrbarbieri@gmail.com>2020-03-29 11:29:03 +0200
commit6c6ff2e8415071b9f2ce776a5619e271f84e75a4 (patch)
tree5289e5af4c69cb4b39160946b0b8337941af1edf /dev-python/autoflake/autoflake-1.3.1.ebuild
parentdev-python/pytest-trio: new package (diff)
downloadguru-6c6ff2e8415071b9f2ce776a5619e271f84e75a4.tar.gz
guru-6c6ff2e8415071b9f2ce776a5619e271f84e75a4.tar.bz2
guru-6c6ff2e8415071b9f2ce776a5619e271f84e75a4.zip
dev-python/autoflake: new package
Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'dev-python/autoflake/autoflake-1.3.1.ebuild')
-rw-r--r--dev-python/autoflake/autoflake-1.3.1.ebuild31
1 files changed, 31 insertions, 0 deletions
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 00000000..752b394e
--- /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
+}