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: Tue, 03 May 2022 08:39:55
Message-Id: 1651566371.23ea9d8b1fd49ed312eac501a750a017afe69bdd.mgorny@gentoo
1 commit: 23ea9d8b1fd49ed312eac501a750a017afe69bdd
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 08:13:10 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 08:26:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23ea9d8b
7
8 dev-python/pylint: Bump to 2.13.8
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.8.ebuild | 81 ++++++++++++++++++++++++++++++++++
14 2 files changed, 82 insertions(+)
15
16 diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest
17 index ea1cfcdcf74e..537fb5fdf564 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.5.gh.tar.gz 1118551 BLAKE2B 70ee4254aa140aba16adfe67aeb896d9c455843dfa945d335b5ba48e85c9d2d8f057223bc74bd4c0c0bfa2d343a9f78e783705b885caaee6895fcddf7ce23ccb SHA512 e399239fbea58260b17f226dddb63f1e6a2f12cdd601a4e73913a169d23fe2b6085e776bf8144e2c5a555dfdc1b28a5818a4103969d504b638b6b41ee296d182
23 DIST pylint-2.13.7.gh.tar.gz 1120083 BLAKE2B c45d6ec65c11d3682bf3279969f3e45b827b2bbcebbfeb05a31df3a93bb943bf9643a5d467c1e2eebf717577032571a48db1ce84e1c81d72000808ec302aaf1b SHA512 ec0b2ef565239ab3e577c5c2d22c1c8df8b8bb0858c34b6606f649484d69a25c1f51ca61a3da66833d9a713e8a686dc32b940e574650577bdcc4e13d76acc2e5
24 +DIST pylint-2.13.8.gh.tar.gz 1121081 BLAKE2B 06a0a5c3801318ca45073f04a631e0617b5803ce01fd3973fc96d350c38a988222d4b8b03f86c12c317f6f87db5b7b85d1c428373a17e51d1044b382a0d03c1d SHA512 8ab01a15da7d9b659aa11de3ee804e0ad54fefd549be468fe194f8ec66640f5ecbdeddec468c9fd76d1eea8006d60249b1abba59d5047774d22b7b461224695d
25
26 diff --git a/dev-python/pylint/pylint-2.13.8.ebuild b/dev-python/pylint/pylint-2.13.8.ebuild
27 new file mode 100644
28 index 000000000000..899511134c63
29 --- /dev/null
30 +++ b/dev-python/pylint/pylint-2.13.8.ebuild
31 @@ -0,0 +1,81 @@
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://pypi.org/project/pylint/
46 + https://github.com/PyCQA/pylint/
47 +"
48 +SRC_URI="
49 + https://github.com/pycqa/pylint/archive/v${PV}.tar.gz
50 + -> ${P}.gh.tar.gz
51 +"
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
56 +IUSE="examples"
57 +
58 +# Make sure to check https://github.com/PyCQA/pylint/blob/main/setup.cfg#L43 on bumps
59 +# Adjust dep bounds!
60 +RDEPEND="
61 + <dev-python/astroid-2.12[${PYTHON_USEDEP}]
62 + >=dev-python/astroid-2.11.3[${PYTHON_USEDEP}]
63 + >=dev-python/dill-0.2[${PYTHON_USEDEP}]
64 + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
65 + <dev-python/isort-6[${PYTHON_USEDEP}]
66 + >=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
67 + <dev-python/mccabe-0.8[${PYTHON_USEDEP}]
68 + >=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}]
69 + >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}]
70 + $(python_gen_cond_dep '
71 + dev-python/typing-extensions[${PYTHON_USEDEP}]
72 + ' 3.8 3.9)
73 +"
74 +BDEPEND="
75 + test? (
76 + >=dev-python/GitPython-3[${PYTHON_USEDEP}]
77 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
78 + dev-python/typing-extensions[${PYTHON_USEDEP}]
79 + )
80 +"
81 +
82 +PATCHES=(
83 + "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
84 +)
85 +
86 +distutils_enable_sphinx doc --no-autodoc
87 +distutils_enable_tests pytest
88 +
89 +python_test() {
90 + local EPYTEST_DESELECT=(
91 + # No need to run the benchmarks
92 + tests/benchmark/test_baseline_benchmarks.py
93 +
94 + # TODO
95 + 'tests/test_functional.py::test_functional[forgotten_debug_statement_py37]'
96 + 'tests/test_functional.py::test_functional[dataclass_with_field]'
97 + tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_error_msg
98 + tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_info_msg
99 + )
100 + # Specify the test directory explicitly to avoid import file mismatches
101 + epytest tests
102 +}
103 +
104 +python_install_all() {
105 + if use examples ; then
106 + docompress -x "/usr/share/doc/${PF}/examples"
107 + docinto examples
108 + dodoc -r examples/.
109 + fi
110 +
111 + distutils-r1_python_install_all
112 +}