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, 22 Jul 2021 07:25:35
Message-Id: 1626938725.3f5df533b3935548872fdd38432dd6ea8677eda6.mgorny@gentoo
1 commit: 3f5df533b3935548872fdd38432dd6ea8677eda6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 22 06:57:32 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 22 07:25:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f5df533
7
8 dev-python/pylint: Bump to 2.9.5
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.9.5.ebuild | 57 +++++++++++++++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest
17 index ee45bc7fc21..3d1653ded47 100644
18 --- a/dev-python/pylint/Manifest
19 +++ b/dev-python/pylint/Manifest
20 @@ -3,3 +3,4 @@ DIST pylint-2.9.0.gh.tar.gz 768301 BLAKE2B a86ccb83d3155acee0165dc7b0095f5b7741c
21 DIST pylint-2.9.1.gh.tar.gz 769124 BLAKE2B feabb520c22722df73471e87e05f22f0fb937113c9d02e39bf4e2554479c58a5044afe565c107e9478d868284b8875fec65b976633dddb4bc9d7748b35640218 SHA512 7aea388c6e62fd53e6775a4732da87269f3df22f995241621eb9b8d72c8573b6a4fa9545b1553db91f09eee013bd695e075d69c35436b05623576f13f1317cb6
22 DIST pylint-2.9.3.gh.tar.gz 770364 BLAKE2B 3892286ffbd79b417c6decba44bce97f45192299ac8e2ec0e24770b2dd6cf1c28bac790626a478d47a6124ec0470ea9fc0d4230c5a1e807532852844445bb95a SHA512 45c037b970b66254b54a4810a5609dc098b5493d409826333e6a75f9ff0fc02921162711d88c45fd2f437e6521f639c33b25b714830a977c501612ee497501bb
23 DIST pylint-2.9.4.gh.tar.gz 777252 BLAKE2B 84bc535b3c471be5d01a02ee67494d993cc257f0938e1bb0e35b1d64415d256c4f0dabd45cdc3319716c67e5e71ea935b63633f56b97013bd8616296343709d5 SHA512 9b5db20cf2d858e662c309b11cf28bf247b7c5f90de4f747733a0288ff4acced02e0e6b83145e7d940772eb9debf297b9ee6976e0f3ffbd73aaacaa3f4cb51e6
24 +DIST pylint-2.9.5.gh.tar.gz 778090 BLAKE2B cbcf5427665f56cc37afd08fb537fcc3f17697ca7cdbd7da97bad4093f344c9b961a156f5d141e070fa84c7e07293175a70585a8c996c9cffb7cef80717752af SHA512 84695bae88704391752f4b0944e39f5b44933fee8d88a8839729845b93bbe59876da08ab98645217c4ff2a98fd793a92063123b25a595fb332ce0a3943bcf7e7
25
26 diff --git a/dev-python/pylint/pylint-2.9.5.ebuild b/dev-python/pylint/pylint-2.9.5.ebuild
27 new file mode 100644
28 index 00000000000..75d26e73965
29 --- /dev/null
30 +++ b/dev-python/pylint/pylint-2.9.5.ebuild
31 @@ -0,0 +1,57 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8..9} )
38 +PYTHON_REQ_USE="threads(+)"
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Python code static checker"
43 +HOMEPAGE="https://www.logilab.org/project/pylint
44 + https://pypi.org/project/pylint/
45 + https://github.com/pycqa/pylint/"
46 +SRC_URI="
47 + https://github.com/pycqa/pylint/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
52 +IUSE="examples"
53 +
54 +RDEPEND="
55 + <dev-python/astroid-2.7[${PYTHON_USEDEP}]
56 + >=dev-python/astroid-2.6.5[${PYTHON_USEDEP}]
57 + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
58 + <dev-python/isort-6[${PYTHON_USEDEP}]
59 + >=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
60 + <dev-python/mccabe-0.7[${PYTHON_USEDEP}]
61 + >=dev-python/toml-0.7.1[${PYTHON_USEDEP}]
62 +"
63 +
64 +PATCHES=(
65 + "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
66 +)
67 +
68 +distutils_enable_sphinx doc --no-autodoc
69 +distutils_enable_tests pytest
70 +
71 +python_test() {
72 + local skipped_tests=(
73 + # No need to run the benchmarks
74 + tests/benchmark/test_baseline_benchmarks.py
75 + )
76 + # Specify the test directory explicitly to avoid import file mismatches
77 + epytest tests ${skipped_tests[@]/#/--deselect }
78 +}
79 +
80 +python_install_all() {
81 + if use examples ; then
82 + docompress -x "/usr/share/doc/${PF}/examples"
83 + docinto examples
84 + dodoc -r examples/.
85 + fi
86 +
87 + distutils-r1_python_install_all
88 +}