1 |
commit: 9b6fa3b2f97ca2c4c204140cabcff55b6da18997 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 25 05:28:32 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 25 05:28:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b6fa3b2 |
7 |
|
8 |
dev-python/pylint: add 2.11.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/818259 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-python/pylint/Manifest | 1 + |
14 |
dev-python/pylint/pylint-2.11.1.ebuild | 58 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest |
18 |
index 458d429e51ac..c2c9d79dee14 100644 |
19 |
--- a/dev-python/pylint/Manifest |
20 |
+++ b/dev-python/pylint/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST pylint-2.10.2.gh.tar.gz 813391 BLAKE2B 109f8817e32ddf8d93c9120518e77a1d2f7e61cd1a6362eb1cf9e6d242db72fa1a9271588a3abb28efca54bcc449dce623ae5d5fd63153ec2bc367e008aab465 SHA512 5d694587956c4f11eb4afaec26cefb66ccbe14dc2aacf378a0362326506d80eb2633e0d351c0a20715a3359a9bc438092d77b2e46f7f787210c7ab0555f2722f |
23 |
+DIST pylint-2.11.1.gh.tar.gz 967223 BLAKE2B 435bb4589fa6dbfadfa234f8cb968a1d5c39efaf9b37fd20dfadc6feb1e997b34124386dab777b1aa1657bd9a36055d535e231181c71834517528cbbc04c698f SHA512 fe283b6eb8090414ea99809158b4e7f9fe85187ef6488ec37c5f34430793b0b4ff8afd9c97452fe0bb88efb9be001c0fd9f9a09a23081cb79084ae409b277f34 |
24 |
|
25 |
diff --git a/dev-python/pylint/pylint-2.11.1.ebuild b/dev-python/pylint/pylint-2.11.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..a22b9b25c94f |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pylint/pylint-2.11.1.ebuild |
30 |
@@ -0,0 +1,58 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+PYTHON_REQ_USE="threads(+)" |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Python code static checker" |
42 |
+HOMEPAGE="https://www.logilab.org/project/pylint |
43 |
+ https://pypi.org/project/pylint/ |
44 |
+ https://github.com/pycqa/pylint/" |
45 |
+SRC_URI=" |
46 |
+ https://github.com/pycqa/pylint/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
51 |
+IUSE="examples" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ <dev-python/astroid-2.9[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/astroid-2.8.0[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] |
57 |
+ <dev-python/isort-6[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/mccabe-0.6[${PYTHON_USEDEP}] |
59 |
+ <dev-python/mccabe-0.7[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/toml-0.7.1[${PYTHON_USEDEP}] |
62 |
+" |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch" |
66 |
+) |
67 |
+ |
68 |
+distutils_enable_sphinx doc --no-autodoc |
69 |
+distutils_enable_tests pytest |
70 |
+ |
71 |
+python_test() { |
72 |
+ local EPYTEST_DESELECT=( |
73 |
+ # No need to run the benchmarks |
74 |
+ tests/benchmark/test_baseline_benchmarks.py |
75 |
+ ) |
76 |
+ # Specify the test directory explicitly to avoid import file mismatches |
77 |
+ epytest tests |
78 |
+} |
79 |
+ |
80 |
+python_install_all() { |
81 |
+ if use examples ; then |
82 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
83 |
+ docinto examples |
84 |
+ dodoc -r examples/. |
85 |
+ fi |
86 |
+ |
87 |
+ distutils-r1_python_install_all |
88 |
+} |