1 |
commit: 76a8a1077a82a1b42f5fc9b3fb22b1e12e123ce0 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 31 17:49:08 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 31 18:20:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76a8a107 |
7 |
|
8 |
dev-python/pycodestyle: add 2.9.0 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/pycodestyle/Manifest | 1 + |
13 |
dev-python/pycodestyle/pycodestyle-2.9.0.ebuild | 31 +++++++++++++++++++++++++ |
14 |
2 files changed, 32 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pycodestyle/Manifest b/dev-python/pycodestyle/Manifest |
17 |
index f771efe50119..9820de6c38bb 100644 |
18 |
--- a/dev-python/pycodestyle/Manifest |
19 |
+++ b/dev-python/pycodestyle/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pycodestyle-2.8.0.tar.gz 102299 BLAKE2B ac4708a513582bb0f27f1abfcc983319e6c7b853c53971d5f026f297f897b25a6c8a651a4d2441b19ab37e6df6f7a38a472aad0757fec59e0438263d76ccfdb2 SHA512 0098be44451bc173507e2b396aaf342ccf7f25a6a1f5d5c1f802079a76a66e6bedf9f358b5e07b27bee66e3b279c72a6b72f63e5984f58ae83b7fc5806880fc1 |
22 |
+DIST pycodestyle-2.9.0.tar.gz 102014 BLAKE2B ee2c2cad332e7442f9e557f388c3de09ea0ea65b0678c65d64d6293de18aa884a39a6a65ce47a99ac04b98da4e4bad14d2ccd228b22bdbd7361a3a0ca2c27afb SHA512 82926bf1c5b72decc0679d4fcec705d707b91b347ea0eec52b1f05301b96e55fc75afdb367ecdec674976fe1f2f7b475498a8e9a2ba19e3dfd483584a9ef841e |
23 |
|
24 |
diff --git a/dev-python/pycodestyle/pycodestyle-2.9.0.ebuild b/dev-python/pycodestyle/pycodestyle-2.9.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..509d1524f65a |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pycodestyle/pycodestyle-2.9.0.ebuild |
29 |
@@ -0,0 +1,31 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( pypy3 python3_{8..11} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Python style guide checker (fka pep8)" |
41 |
+HOMEPAGE=" |
42 |
+ https://pycodestyle.pycqa.org/en/latest/ |
43 |
+ https://github.com/PyCQA/pycodestyle/ |
44 |
+ https://pypi.org/project/pycodestyle/ |
45 |
+" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
51 |
+ |
52 |
+distutils_enable_sphinx docs \ |
53 |
+ dev-python/sphinx_rtd_theme |
54 |
+ |
55 |
+python_test() { |
56 |
+ local -x PYTHONPATH=${S} |
57 |
+ "${EPYTHON}" pycodestyle.py -v --statistics pycodestyle.py || die "Tests failed with ${EPYTHON}" |
58 |
+ "${EPYTHON}" pycodestyle.py -v --max-doc-length=72 --testsuite=testsuite || die "Tests failed with ${EPYTHON}" |
59 |
+ "${EPYTHON}" pycodestyle.py --doctest -v || die "Tests failed with ${EPYTHON}" |
60 |
+} |