1 |
commit: e821374dd1524a50cb9fa3dce72601b5227c8b8a |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 25 22:33:31 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 25 22:37:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e821374d |
7 |
|
8 |
dev-python/pylint: add 2.12.1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-python/pylint/Manifest | 1 + |
13 |
dev-python/pylint/pylint-2.12.1.ebuild | 64 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest |
17 |
index c2c9d79dee14..bb2abc140426 100644 |
18 |
--- a/dev-python/pylint/Manifest |
19 |
+++ b/dev-python/pylint/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST pylint-2.10.2.gh.tar.gz 813391 BLAKE2B 109f8817e32ddf8d93c9120518e77a1d2f7e61cd1a6362eb1cf9e6d242db72fa1a9271588a3abb28efca54bcc449dce623ae5d5fd63153ec2bc367e008aab465 SHA512 5d694587956c4f11eb4afaec26cefb66ccbe14dc2aacf378a0362326506d80eb2633e0d351c0a20715a3359a9bc438092d77b2e46f7f787210c7ab0555f2722f |
22 |
DIST pylint-2.11.1.gh.tar.gz 967223 BLAKE2B 435bb4589fa6dbfadfa234f8cb968a1d5c39efaf9b37fd20dfadc6feb1e997b34124386dab777b1aa1657bd9a36055d535e231181c71834517528cbbc04c698f SHA512 fe283b6eb8090414ea99809158b4e7f9fe85187ef6488ec37c5f34430793b0b4ff8afd9c97452fe0bb88efb9be001c0fd9f9a09a23081cb79084ae409b277f34 |
23 |
+DIST pylint-2.12.1.gh.tar.gz 1025764 BLAKE2B 650cf89a6b1d39be1eb6e9595e26e84c8f2beb62deebc0886e6a507bcfd7ee4ce87094fd05a139297ea5a4afc4ae5bb2af655bb245d95ac6946f8989efab5531 SHA512 f758775b6ecc8b73096e3556b3c22c81d84baa12d7623448aaa9e2ac19ff5b99112938ee7c8daf7122dbdb4d2b41012a7606213972a2dcf855b450a0a74f0d1e |
24 |
|
25 |
diff --git a/dev-python/pylint/pylint-2.12.1.ebuild b/dev-python/pylint/pylint-2.12.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..7d00a5792ed0 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pylint/pylint-2.12.1.ebuild |
30 |
@@ -0,0 +1,64 @@ |
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="~amd64 ~arm ~arm64 ~riscv ~x86" |
51 |
+IUSE="examples" |
52 |
+ |
53 |
+# Make sure to check https://github.com/PyCQA/pylint/blob/main/setup.cfg#L43 on bumps |
54 |
+# Adjust dep bounds! |
55 |
+RDEPEND=" |
56 |
+ <dev-python/astroid-2.10[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/astroid-2.9.0[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] |
59 |
+ <dev-python/isort-6[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/mccabe-0.6[${PYTHON_USEDEP}] |
61 |
+ <dev-python/mccabe-0.7[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/toml-0.9.2[${PYTHON_USEDEP}] |
64 |
+ $(python_gen_cond_dep ' |
65 |
+ dev-python/typing-extensions[${PYTHON_USEDEP}] |
66 |
+ ' python3_{8,9}) |
67 |
+" |
68 |
+BDEPEND="test? ( >=dev-python/GitPython-3[${PYTHON_USEDEP}] )" |
69 |
+ |
70 |
+PATCHES=( |
71 |
+ "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch" |
72 |
+) |
73 |
+ |
74 |
+distutils_enable_sphinx doc --no-autodoc |
75 |
+distutils_enable_tests pytest |
76 |
+ |
77 |
+python_test() { |
78 |
+ local EPYTEST_DESELECT=( |
79 |
+ # No need to run the benchmarks |
80 |
+ tests/benchmark/test_baseline_benchmarks.py |
81 |
+ ) |
82 |
+ # Specify the test directory explicitly to avoid import file mismatches |
83 |
+ epytest tests |
84 |
+} |
85 |
+ |
86 |
+python_install_all() { |
87 |
+ if use examples ; then |
88 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
89 |
+ docinto examples |
90 |
+ dodoc -r examples/. |
91 |
+ fi |
92 |
+ |
93 |
+ distutils-r1_python_install_all |
94 |
+} |