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