1 |
commit: 862e84c96b322d29e3abad1423fb15396acd5e2d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 7 05:26:30 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 7 06:54:01 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=862e84c9 |
7 |
|
8 |
dev-python/pylint: Bump to 2.14.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.14.1.ebuild | 81 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 82 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest |
17 |
index e7ecffe0269c..75d789bb1bb0 100644 |
18 |
--- a/dev-python/pylint/Manifest |
19 |
+++ b/dev-python/pylint/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pylint-2.13.9.gh.tar.gz 1123216 BLAKE2B f80e88f565595b16bba650a009bfdd6d55efa65227898d145d4867c116c89c7ab5244c509382f0e9023404b4e46accb742334450ca7342394fb4d0abaccb8d03 SHA512 dcea90b1b1494d928f0b12dd2b50ee1d97a74efce18e0ef54ea02b52209a574977971e12db8f476edcf1bd646ca41c6a77bcf9a425c01af71bd29e54fd6c20b9 |
22 |
+DIST pylint-2.14.1.gh.tar.gz 1270750 BLAKE2B 120cc78c3d76ccb10f88c94b5528f1ed42730b49ac7daea4c1e65cd82fa2aea2c7d77a3a26dcb84201c69afeceb538cddf1ba740af308b586624ee3d40656d49 SHA512 4be985bb78e4b2bd65a195b95fdeb2a95c59c82db2446c9c365b11f0ba57e2a3234a41865071272cb054647a15e7e1a8b48d034ca656a3a44ca509648f258c13 |
23 |
|
24 |
diff --git a/dev-python/pylint/pylint-2.14.1.ebuild b/dev-python/pylint/pylint-2.14.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..42b2494ce503 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pylint/pylint-2.14.1.ebuild |
29 |
@@ -0,0 +1,81 @@ |
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=( python3_{8..10} ) |
37 |
+PYTHON_REQ_USE="threads(+)" |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Python code static checker" |
42 |
+HOMEPAGE=" |
43 |
+ https://pypi.org/project/pylint/ |
44 |
+ https://github.com/PyCQA/pylint/ |
45 |
+" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/pycqa/pylint/archive/v${PV}.tar.gz |
48 |
+ -> ${P}.gh.tar.gz |
49 |
+" |
50 |
+ |
51 |
+LICENSE="GPL-2" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
54 |
+IUSE="examples" |
55 |
+ |
56 |
+# Make sure to check https://github.com/PyCQA/pylint/blob/main/setup.cfg#L43 on bumps |
57 |
+# Adjust dep bounds! |
58 |
+RDEPEND=" |
59 |
+ <dev-python/astroid-2.12[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/astroid-2.11.5[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/dill-0.2[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] |
63 |
+ <dev-python/isort-6[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/mccabe-0.6[${PYTHON_USEDEP}] |
65 |
+ <dev-python/mccabe-0.8[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/tomlkit-0.10.1[${PYTHON_USEDEP}] |
69 |
+ $(python_gen_cond_dep ' |
70 |
+ dev-python/typing-extensions[${PYTHON_USEDEP}] |
71 |
+ ' 3.8 3.9) |
72 |
+" |
73 |
+BDEPEND=" |
74 |
+ test? ( |
75 |
+ >=dev-python/GitPython-3[${PYTHON_USEDEP}] |
76 |
+ dev-python/pytest-timeout[${PYTHON_USEDEP}] |
77 |
+ dev-python/typing-extensions[${PYTHON_USEDEP}] |
78 |
+ ) |
79 |
+" |
80 |
+ |
81 |
+distutils_enable_tests pytest |
82 |
+ |
83 |
+python_test() { |
84 |
+ rm -rf pylint || die |
85 |
+ |
86 |
+ local EPYTEST_DESELECT=( |
87 |
+ # No need to run the benchmarks |
88 |
+ tests/benchmark/test_baseline_benchmarks.py |
89 |
+ |
90 |
+ # TODO |
91 |
+ 'tests/test_functional.py::test_functional[forgotten_debug_statement_py37]' |
92 |
+ 'tests/test_functional.py::test_functional[dataclass_with_field]' |
93 |
+ 'tests/test_functional.py::test_functional[no_name_in_module]' |
94 |
+ tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_error_msg |
95 |
+ tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_info_msg |
96 |
+ tests/config/pylint_config/test_run_pylint_config.py::test_invocation_of_pylint_config |
97 |
+ ) |
98 |
+ # Specify the test directory explicitly to avoid import file mismatches |
99 |
+ epytest |
100 |
+} |
101 |
+ |
102 |
+python_install_all() { |
103 |
+ if use examples ; then |
104 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
105 |
+ docinto examples |
106 |
+ dodoc -r examples/. |
107 |
+ fi |
108 |
+ |
109 |
+ distutils-r1_python_install_all |
110 |
+} |