1 |
commit: 63b8828cea0cd0ef0cd0579f7d0a8220b0b61352 |
2 |
Author: Tobias Klausmann <klausman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 6 11:48:41 2016 +0000 |
4 |
Commit: Tobias Klausmann <klausman <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 6 11:48:41 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63b8828c |
7 |
|
8 |
dev-python/pycodestyle: Initial addition to the tree |
9 |
|
10 |
This is the successor project to pep8 and will be needed for the |
11 |
upcoming bump of flake8. |
12 |
|
13 |
dev-python/pycodestyle/Manifest | 1 + |
14 |
dev-python/pycodestyle/metadata.xml | 9 ++++++ |
15 |
dev-python/pycodestyle/pycodestyle-2.0.0.ebuild | 38 +++++++++++++++++++++++++ |
16 |
3 files changed, 48 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pycodestyle/Manifest b/dev-python/pycodestyle/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000..8ad2207 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/pycodestyle/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST pycodestyle-2.0.0.tar.gz 81701 SHA256 37f0420b14630b0eaaf452978f3a6ea4816d787c3e6dcbba6fb255030adae2e7 SHA512 c003a75bb8873d8ec09cbaf7391c75ebd4739eeab518bbea03c8b2cdc18839773190352166ded78d32992adb56895ee1502003bca11b2d63676c10facb879ac8 WHIRLPOOL 3f162936ea03c8bcd2ba7adbcb77c3d8e44549090875719c888a9fbd86bb9cbf16d4378ffc1c2f28050253520aa86753172816429bc530bc074a2f8fd3e88613 |
25 |
|
26 |
diff --git a/dev-python/pycodestyle/metadata.xml b/dev-python/pycodestyle/metadata.xml |
27 |
new file mode 100644 |
28 |
index 00000000..639c1bc |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pycodestyle/metadata.xml |
31 |
@@ -0,0 +1,9 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>klausman@g.o</email> |
37 |
+ <name>Tobias Klausmann</name> |
38 |
+ </maintainer> |
39 |
+</pkgmetadata> |
40 |
+ |
41 |
|
42 |
diff --git a/dev-python/pycodestyle/pycodestyle-2.0.0.ebuild b/dev-python/pycodestyle/pycodestyle-2.0.0.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000..5edf905 |
45 |
--- /dev/null |
46 |
+++ b/dev-python/pycodestyle/pycodestyle-2.0.0.ebuild |
47 |
@@ -0,0 +1,38 @@ |
48 |
+# Copyright 1999-2016 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+# $Id$ |
51 |
+ |
52 |
+EAPI=6 |
53 |
+ |
54 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) |
55 |
+ |
56 |
+inherit distutils-r1 |
57 |
+ |
58 |
+DESCRIPTION="Python style guide checker (fka pep8)" |
59 |
+HOMEPAGE="https://pypi.python.org/pypi/pycodestyle" |
60 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
61 |
+ |
62 |
+LICENSE="MIT" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
65 |
+IUSE="doc" |
66 |
+ |
67 |
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
68 |
+DEPEND="${RDEPEND} |
69 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
70 |
+ |
71 |
+python_compile_all() { |
72 |
+ use doc && emake -C docs html |
73 |
+} |
74 |
+ |
75 |
+python_test() { |
76 |
+ PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py -v --statistics pycodestyle.py || die |
77 |
+ PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py -v --testsuite=testsuite || die |
78 |
+ PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py --doctest -v || die |
79 |
+ esetup.py test |
80 |
+} |
81 |
+ |
82 |
+python_install_all() { |
83 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
84 |
+ distutils-r1_python_install_all |
85 |
+} |