Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pylint/
Date: Sun, 26 Sep 2021 04:29:20
Message-Id: 1632630536.ffa9d3fe3a9244e055172085119c9ea9d41c77b7.sam@gentoo
1 commit: ffa9d3fe3a9244e055172085119c9ea9d41c77b7
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 26 04:28:24 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 26 04:28:56 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffa9d3fe
7
8 Revert "dev-python/pylint: drop 2.9.6"
9
10 This reverts commit 81063f1f84410cb7bb4a1228cb7f5360ab041097.
11
12 Needed by dev-python/python-lsp-server.
13
14 Bug: https://bugs.gentoo.org/814854
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 dev-python/pylint/Manifest | 1 +
18 dev-python/pylint/pylint-2.9.6.ebuild | 57 +++++++++++++++++++++++++++++++++++
19 2 files changed, 58 insertions(+)
20
21 diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest
22 index 458d429e51a..d3c387d2fb8 100644
23 --- a/dev-python/pylint/Manifest
24 +++ b/dev-python/pylint/Manifest
25 @@ -1 +1,2 @@
26 DIST pylint-2.10.2.gh.tar.gz 813391 BLAKE2B 109f8817e32ddf8d93c9120518e77a1d2f7e61cd1a6362eb1cf9e6d242db72fa1a9271588a3abb28efca54bcc449dce623ae5d5fd63153ec2bc367e008aab465 SHA512 5d694587956c4f11eb4afaec26cefb66ccbe14dc2aacf378a0362326506d80eb2633e0d351c0a20715a3359a9bc438092d77b2e46f7f787210c7ab0555f2722f
27 +DIST pylint-2.9.6.gh.tar.gz 779390 BLAKE2B b1d8794e1e7ccdde87919eb943f83287c0a7b85b67f3722cbbe68887f2c61ab30b354548e25b70c661234647e35f79beb6aaad5f6be6bfde8c2475cf03676922 SHA512 a23ff089853398df2e4232767ca87c21e4ab4fc6805de80db796c78c56e0da1ade9b0586f5c14a98524bf607e0d240c354cf63287eec7dfdce263188eb19ddce
28
29 diff --git a/dev-python/pylint/pylint-2.9.6.ebuild b/dev-python/pylint/pylint-2.9.6.ebuild
30 new file mode 100644
31 index 00000000000..ccd48c7f91f
32 --- /dev/null
33 +++ b/dev-python/pylint/pylint-2.9.6.ebuild
34 @@ -0,0 +1,57 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +PYTHON_COMPAT=( python3_{8..9} )
41 +PYTHON_REQ_USE="threads(+)"
42 +
43 +inherit distutils-r1
44 +
45 +DESCRIPTION="Python code static checker"
46 +HOMEPAGE="https://www.logilab.org/project/pylint
47 + https://pypi.org/project/pylint/
48 + https://github.com/pycqa/pylint/"
49 +SRC_URI="
50 + https://github.com/pycqa/pylint/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv sparc x86"
55 +IUSE="examples"
56 +
57 +RDEPEND="
58 + <dev-python/astroid-2.7[${PYTHON_USEDEP}]
59 + >=dev-python/astroid-2.6.5[${PYTHON_USEDEP}]
60 + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
61 + <dev-python/isort-6[${PYTHON_USEDEP}]
62 + >=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
63 + <dev-python/mccabe-0.7[${PYTHON_USEDEP}]
64 + >=dev-python/toml-0.7.1[${PYTHON_USEDEP}]
65 +"
66 +
67 +PATCHES=(
68 + "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
69 +)
70 +
71 +distutils_enable_sphinx doc --no-autodoc
72 +distutils_enable_tests pytest
73 +
74 +python_test() {
75 + local skipped_tests=(
76 + # No need to run the benchmarks
77 + tests/benchmark/test_baseline_benchmarks.py
78 + )
79 + # Specify the test directory explicitly to avoid import file mismatches
80 + epytest tests ${skipped_tests[@]/#/--deselect }
81 +}
82 +
83 +python_install_all() {
84 + if use examples ; then
85 + docompress -x "/usr/share/doc/${PF}/examples"
86 + docinto examples
87 + dodoc -r examples/.
88 + fi
89 +
90 + distutils-r1_python_install_all
91 +}