1 |
commit: 6c6ff2e8415071b9f2ce776a5619e271f84e75a4 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Mar 29 09:27:19 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sun Mar 29 09:29:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6c6ff2e8 |
7 |
|
8 |
dev-python/autoflake: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
dev-python/autoflake/Manifest | 1 + |
14 |
dev-python/autoflake/autoflake-1.3.1.ebuild | 31 +++++++++++++++++++++++++++++ |
15 |
dev-python/autoflake/metadata.xml | 20 +++++++++++++++++++ |
16 |
3 files changed, 52 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/autoflake/Manifest b/dev-python/autoflake/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..a55e724 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/autoflake/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST autoflake-1.3.1.tar.gz 19756 BLAKE2B 8a172888a8c44483b8771b59bebda841e55455f544197e2f1bce08dfb7cb3dd54e8a616a15a3712609480bc484561ffa27aaa93d9b5e1a573bb1960df96ea9cf SHA512 763bcfc824412129901106ddcaf7104a2bfa5ee86b43d2822b51af5532ea0ac46466b64a004c099dc6fa2a96b23ae959e1ef1eb68c6be0c1e4c08ab9bf174e08 |
25 |
|
26 |
diff --git a/dev-python/autoflake/autoflake-1.3.1.ebuild b/dev-python/autoflake/autoflake-1.3.1.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..752b394 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/autoflake/autoflake-1.3.1.ebuild |
31 |
@@ -0,0 +1,31 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="7" |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{6,7} ) |
38 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="Removes unused imports and unused variables as reported by pyflakes" |
43 |
+HOMEPAGE=" |
44 |
+ https://github.com/myint/autoflake |
45 |
+ https://pypi.org/project/autoflake |
46 |
+" |
47 |
+SRC_URI="https://github.com/myint/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="test" |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+DEPEND=" |
56 |
+ >=dev-python/pyflakes-1.1.0[${PYTHON_USEDEP}] |
57 |
+" |
58 |
+RDEPEND="${DEPEND}" |
59 |
+ |
60 |
+python_test() { |
61 |
+ "${EPYTHON}" test_autoflake.py || die |
62 |
+} |
63 |
|
64 |
diff --git a/dev-python/autoflake/metadata.xml b/dev-python/autoflake/metadata.xml |
65 |
new file mode 100644 |
66 |
index 0000000..3fe5b4f |
67 |
--- /dev/null |
68 |
+++ b/dev-python/autoflake/metadata.xml |
69 |
@@ -0,0 +1,20 @@ |
70 |
+<?xml version="1.0" encoding="UTF-8"?> |
71 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
72 |
+ |
73 |
+<pkgmetadata> |
74 |
+ <maintainer type="person"> |
75 |
+ <email>lssndrbarbieri@×××××.com</email> |
76 |
+ <name>Alessandro Barbieri</name> |
77 |
+ </maintainer> |
78 |
+ <longdescription> |
79 |
+autoflake removes unused imports and unused variables from Python code. It makes use of pyflakes to do this. |
80 |
+ |
81 |
+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. |
82 |
+ |
83 |
+autoflake also removes useless pass statements. |
84 |
+ </longdescription> |
85 |
+ <upstream> |
86 |
+ <remote-id type="github">myint/autoflake</remote-id> |
87 |
+ <remote-id type="pypi">autoflake</remote-id> |
88 |
+ </upstream> |
89 |
+</pkgmetadata> |