Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pylint/
Date: Mon, 28 Mar 2022 10:14:42
Message-Id: 1648462470.3f850a60e39a27395304ff2fd94e3920b562fd4e.mgorny@gentoo
1 commit: 3f850a60e39a27395304ff2fd94e3920b562fd4e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 28 09:10:30 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 28 10:14:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f850a60
7
8 dev-python/pylint: Bump to 2.13.2
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.13.2.ebuild | 82 ++++++++++++++++++++++++++++++++++
14 2 files changed, 83 insertions(+)
15
16 diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest
17 index 0f2c8b68a381..56af8334ed1b 100644
18 --- a/dev-python/pylint/Manifest
19 +++ b/dev-python/pylint/Manifest
20 @@ -1,3 +1,4 @@
21 DIST pylint-2.12.2.gh.tar.gz 1032702 BLAKE2B de7dce04159b332baa5c23f4034ee249e49f9239c5c9190213a51a84a47ac2129f8a2265e1ad9c01ab448ec58f4f36653c6de5b0be6bfdf6aa286c8887313759 SHA512 0d2b9b785371af0a1c809271153abbab58f50455b34f12370461ded2c4f3d62656e4c0391adff48e179b95da945a2f44e762863e2b7d63808976bf5f684e20d2
22 DIST pylint-2.13.0.gh.tar.gz 1114326 BLAKE2B 2d99ae38474a13ecf0b306b2de445b93ef39c4ed286abdbc62e08580b34ea22615983bded024f87eb4ad5e9cfdd12edbab6e7bf841d4e7827c945e798f31771f SHA512 7ca5fdf6d5835886ae01937fad56319cc9b71248d7a8aa6c6d92ba4bf5d35340ec0a16c1b2029d1ca5170f8c3abd29b1d6915a415d5df3c0949f4f9c0d6a690c
23 DIST pylint-2.13.1.gh.tar.gz 1116054 BLAKE2B 633636f97e284a8a93c598261b90019ea359fd61cf2e833936749a6a650098772c46008f465b118634cfa3cc8d873d9bbdd7d4b0e54621e47b7c33a33938b01d SHA512 9e5f6f2578d240a4984e00fd9e9a33a39bac4855060054f96c4414d8e1c6c16cd6a27d4d5e82fde52f91b2d25595d638e66e928c82aa3eb72a37c61f7aa6e038
24 +DIST pylint-2.13.2.gh.tar.gz 1116482 BLAKE2B da35c9f39781bbd796e2ec055b41c44211588d7da360fd27f81eef57a3f5c65e27931ca927b41692627c9914f5c28e3262c0f34a45c38b20aa1b83710ab1d1f1 SHA512 15274658cf3067ffa6635a94f2c75d8854b3843be45ea5dc5896bc12583b156428858baeed19eed4bfab35489326d70d0cce1375354d9ec97d00cfd895fc4a47
25
26 diff --git a/dev-python/pylint/pylint-2.13.2.ebuild b/dev-python/pylint/pylint-2.13.2.ebuild
27 new file mode 100644
28 index 000000000000..f3e46e1cdb7e
29 --- /dev/null
30 +++ b/dev-python/pylint/pylint-2.13.2.ebuild
31 @@ -0,0 +1,82 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +PYTHON_REQ_USE="threads(+)"
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="Python code static checker"
44 +HOMEPAGE="
45 + https://www.logilab.org/project/pylint
46 + https://pypi.org/project/pylint/
47 + https://github.com/pycqa/pylint/
48 +"
49 +SRC_URI="
50 + https://github.com/pycqa/pylint/archive/v${PV}.tar.gz
51 + -> ${P}.gh.tar.gz
52 +"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~arm ~arm64 ~m68k ~ppc ~riscv ~x86"
57 +IUSE="examples"
58 +
59 +# Make sure to check https://github.com/PyCQA/pylint/blob/main/setup.cfg#L43 on bumps
60 +# Adjust dep bounds!
61 +RDEPEND="
62 + <dev-python/astroid-2.12[${PYTHON_USEDEP}]
63 + >=dev-python/astroid-2.11.0[${PYTHON_USEDEP}]
64 + >=dev-python/dill-0.2[${PYTHON_USEDEP}]
65 + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
66 + <dev-python/isort-6[${PYTHON_USEDEP}]
67 + >=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
68 + <dev-python/mccabe-0.8[${PYTHON_USEDEP}]
69 + >=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}]
70 + >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}]
71 + $(python_gen_cond_dep '
72 + dev-python/typing-extensions[${PYTHON_USEDEP}]
73 + ' 3.8 3.9)
74 +"
75 +BDEPEND="
76 + test? (
77 + >=dev-python/GitPython-3[${PYTHON_USEDEP}]
78 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
79 + dev-python/typing-extensions[${PYTHON_USEDEP}]
80 + )
81 +"
82 +
83 +PATCHES=(
84 + "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
85 +)
86 +
87 +distutils_enable_sphinx doc --no-autodoc
88 +distutils_enable_tests pytest
89 +
90 +python_test() {
91 + local EPYTEST_DESELECT=(
92 + # No need to run the benchmarks
93 + tests/benchmark/test_baseline_benchmarks.py
94 +
95 + # TODO
96 + 'tests/test_functional.py::test_functional[forgotten_debug_statement_py37]'
97 + 'tests/test_functional.py::test_functional[dataclass_with_field]'
98 + tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_error_msg
99 + tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_info_msg
100 + )
101 + # Specify the test directory explicitly to avoid import file mismatches
102 + epytest tests
103 +}
104 +
105 +python_install_all() {
106 + if use examples ; then
107 + docompress -x "/usr/share/doc/${PF}/examples"
108 + docinto examples
109 + dodoc -r examples/.
110 + fi
111 +
112 + distutils-r1_python_install_all
113 +}