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: Wed, 31 Mar 2021 10:14:55
Message-Id: 1617185675.1a0a5da2814e634293cf0fcb681ee9f1eb24882e.mgorny@gentoo
1 commit: 1a0a5da2814e634293cf0fcb681ee9f1eb24882e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 31 08:12:32 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 31 10:14:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a0a5da2
7
8 dev-python/pylint: Bump to 2.7.4
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.7.4.ebuild | 66 +++++++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest
17 index bfbf0cdc570..b469f093ae4 100644
18 --- a/dev-python/pylint/Manifest
19 +++ b/dev-python/pylint/Manifest
20 @@ -1,2 +1,3 @@
21 DIST pylint-2.7.1.tar.gz 708916 BLAKE2B 606637ff25daccba741ae5bcdecb6a2be50bc17393009193a29312b4a218622d23287a0f0c5a81e79e77cc54dfe529483ad01fa39445103f240addaa3ad58bf7 SHA512 eebf1d3da5ca072cb912ecffebf183c79f2f8b2c2b14044751aad202d75d06d1c06abb561d4581990b92fe54c06b570a1de39b792b0d729cf300c01c82c4e3c0
22 DIST pylint-2.7.2.tar.gz 709177 BLAKE2B 5e4daeb19b6b18d570f4d78b01cc5023d5d245840160fdbddb194ab7036118742ffe3075ee27c37bd7a700d11d9006dc9abaaba9cf9596ae1b63941f139da7ac SHA512 800b210fbe5665db390d5c885d103856dc474b4e43d2f752bdcfcea36121132c26eecdcb67620c4a90456823f11a33568de4d37d59eea692dcd1751d931420f7
23 +DIST pylint-2.7.4.tar.gz 715507 BLAKE2B 141506c067195422d0b052924baf87c363c89e28b3279f5173d989ac9247163184840251bd05dfb7dbb765f7b2e921a851fde0323b6c4cc231bc58911c77f692 SHA512 2b7ec9ab3325209021cb0282a6dacabf7ddd1f5e4049157610015ac8c11413471defc9e0528f81e1a60c2b259260f1bde1d04286776b3f32f771968b9866d734
24
25 diff --git a/dev-python/pylint/pylint-2.7.4.ebuild b/dev-python/pylint/pylint-2.7.4.ebuild
26 new file mode 100644
27 index 00000000000..def4ed8778b
28 --- /dev/null
29 +++ b/dev-python/pylint/pylint-2.7.4.ebuild
30 @@ -0,0 +1,66 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7..9} )
37 +PYTHON_REQ_USE="threads(+)"
38 +DISTUTILS_USE_SETUPTOOLS=rdepend
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="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
51 +IUSE="examples"
52 +
53 +# Mirror requirements from pylint/__pkginfo__.py
54 +RDEPEND="
55 + <dev-python/astroid-2.6[${PYTHON_USEDEP}]
56 + >=dev-python/astroid-2.5.2[${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 +BDEPEND="
64 + test? (
65 + dev-python/six[${PYTHON_USEDEP}]
66 + )
67 +"
68 +
69 +PATCHES=(
70 + "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
71 +)
72 +
73 +distutils_enable_sphinx doc --no-autodoc
74 +distutils_enable_tests pytest
75 +
76 +python_test() {
77 + local skipped_tests=(
78 + # No need to run the benchmarks
79 + tests/benchmark/test_baseline_benchmarks.py
80 + # Fails when graphviz is installed (?!)
81 + tests/test_import_graph.py::test_missing_graphviz
82 + )
83 + # Specify the test directory explicitly to avoid import file mismatches
84 + epytest tests ${skipped_tests[@]/#/--deselect }
85 +}
86 +
87 +python_install_all() {
88 + doman man/{pylint,pyreverse}.1
89 + if use examples ; then
90 + docompress -x "/usr/share/doc/${PF}/examples"
91 + docinto examples
92 + dodoc -r examples/.
93 + fi
94 +
95 + distutils-r1_python_install_all
96 +}