1 |
commit: 3d58ac7f44216c12c597c4b33d28653ddc8c64f8 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 1 06:04:39 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 1 06:13:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d58ac7f |
7 |
|
8 |
dev-python/pylint: Bump to 2.9.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pylint/Manifest | 1 + |
13 |
dev-python/pylint/pylint-2.9.1.ebuild | 57 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 58 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest |
17 |
index 54ff4f787a3..c5ff2b690fe 100644 |
18 |
--- a/dev-python/pylint/Manifest |
19 |
+++ b/dev-python/pylint/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST pylint-2.8.2.gh.tar.gz 734667 BLAKE2B 1525273298f39163de4db7946a749768cb9bcf7e11f89791944ccb5fb8d0918eedfc80d5e559d33934d468dd5781d4cb4921b9407daf2842613a8e3ba7d134e0 SHA512 7023603668f540ecc0b35f3289377855c4c0df01e04a9af255f5c8031f568f6b76508bb3a7f0aba8e76a86b63eae423908c30f47258d6dee46bb23320c952701 |
22 |
DIST pylint-2.9.0.gh.tar.gz 768301 BLAKE2B a86ccb83d3155acee0165dc7b0095f5b7741c62e7b1f127349eef643cd1d0513ed2f5aaa89d78728806f03b08645ed1579aafb073d649e928d4c415e50dc8a49 SHA512 b524a3d3241702c1fc34ca9ee38815d02e7f4572d8ff3c132141ac7d9c7ff59f88995b92ccfcf18fd57e04be8f24571ef0ab99e6b4ce615f0f6957022d1d1467 |
23 |
+DIST pylint-2.9.1.gh.tar.gz 769124 BLAKE2B feabb520c22722df73471e87e05f22f0fb937113c9d02e39bf4e2554479c58a5044afe565c107e9478d868284b8875fec65b976633dddb4bc9d7748b35640218 SHA512 7aea388c6e62fd53e6775a4732da87269f3df22f995241621eb9b8d72c8573b6a4fa9545b1553db91f09eee013bd695e075d69c35436b05623576f13f1317cb6 |
24 |
|
25 |
diff --git a/dev-python/pylint/pylint-2.9.1.ebuild b/dev-python/pylint/pylint-2.9.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..72070de692f |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pylint/pylint-2.9.1.ebuild |
30 |
@@ -0,0 +1,57 @@ |
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..9} ) |
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 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
51 |
+IUSE="examples" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ <dev-python/astroid-2.7[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/astroid-2.6.2[${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/toml-0.7.1[${PYTHON_USEDEP}] |
61 |
+" |
62 |
+ |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch" |
65 |
+) |
66 |
+ |
67 |
+distutils_enable_sphinx doc --no-autodoc |
68 |
+distutils_enable_tests pytest |
69 |
+ |
70 |
+python_test() { |
71 |
+ local skipped_tests=( |
72 |
+ # No need to run the benchmarks |
73 |
+ tests/benchmark/test_baseline_benchmarks.py |
74 |
+ ) |
75 |
+ # Specify the test directory explicitly to avoid import file mismatches |
76 |
+ epytest tests ${skipped_tests[@]/#/--deselect } |
77 |
+} |
78 |
+ |
79 |
+python_install_all() { |
80 |
+ if use examples ; then |
81 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
82 |
+ docinto examples |
83 |
+ dodoc -r examples/. |
84 |
+ fi |
85 |
+ |
86 |
+ distutils-r1_python_install_all |
87 |
+} |