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: Sun, 25 Apr 2021 21:58:57
Message-Id: 1619387928.1a201eee8c33ff83b1958b9c552bb30c424f509e.mgorny@gentoo
1 commit: 1a201eee8c33ff83b1958b9c552bb30c424f509e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 25 21:58:07 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 25 21:58:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a201eee
7
8 dev-python/pylint: Bump to 2.8.1
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.8.1.ebuild | 63 +++++++++++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest
17 index cfc1e8a0c52..89204b78b63 100644
18 --- a/dev-python/pylint/Manifest
19 +++ b/dev-python/pylint/Manifest
20 @@ -2,3 +2,4 @@ DIST pylint-2.7.1.tar.gz 708916 BLAKE2B 606637ff25daccba741ae5bcdecb6a2be50bc173
21 DIST pylint-2.7.2.tar.gz 709177 BLAKE2B 5e4daeb19b6b18d570f4d78b01cc5023d5d245840160fdbddb194ab7036118742ffe3075ee27c37bd7a700d11d9006dc9abaaba9cf9596ae1b63941f139da7ac SHA512 800b210fbe5665db390d5c885d103856dc474b4e43d2f752bdcfcea36121132c26eecdcb67620c4a90456823f11a33568de4d37d59eea692dcd1751d931420f7
22 DIST pylint-2.7.4.tar.gz 715507 BLAKE2B 141506c067195422d0b052924baf87c363c89e28b3279f5173d989ac9247163184840251bd05dfb7dbb765f7b2e921a851fde0323b6c4cc231bc58911c77f692 SHA512 2b7ec9ab3325209021cb0282a6dacabf7ddd1f5e4049157610015ac8c11413471defc9e0528f81e1a60c2b259260f1bde1d04286776b3f32f771968b9866d734
23 DIST pylint-2.8.0.tar.gz 734325 BLAKE2B 479c6f409a7da46d8416c4c06f76937b70ddbffab64d57a9107f9b04283fa985186684d3d146c5ca585a0e8e9369d28e4fbeb5f53262662d94edd862694dd4fa SHA512 d4f6b6c6046265beb0e17b8d375d2604a889bf9b6569d4dae9cdec3f92c8c76d440f6527c9d42f7197a73d4a65fab73f57e5ab99c98d40681119eb051b117211
24 +DIST pylint-2.8.1.tar.gz 734583 BLAKE2B eb28c54a952c87f9cf59d18956dbc632ff89f4d3a91423a84ee3d4468e5af5fe7fcf37288964af0f36884bc0c46d400e2414bbf114a4a06f75a5c8da50ba9030 SHA512 ec8710396f07cdec8a395748ffda403a1f3fbd00094a1ad32e976c52be946c08b9e32521205dc165a0284467c68d9f467be40d141907bcd148b94e285eeca606
25
26 diff --git a/dev-python/pylint/pylint-2.8.1.ebuild b/dev-python/pylint/pylint-2.8.1.ebuild
27 new file mode 100644
28 index 00000000000..4f033ab1f2c
29 --- /dev/null
30 +++ b/dev-python/pylint/pylint-2.8.1.ebuild
31 @@ -0,0 +1,63 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +PYTHON_REQ_USE="threads(+)"
39 +DISTUTILS_USE_SETUPTOOLS=rdepend
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="Python code static checker"
44 +HOMEPAGE="https://www.logilab.org/project/pylint
45 + https://pypi.org/project/pylint/
46 + https://github.com/pycqa/pylint/"
47 +SRC_URI="
48 + https://github.com/pycqa/pylint/archive/${P}.tar.gz"
49 +S=${WORKDIR}/${PN}-${P}
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
54 +IUSE="examples"
55 +
56 +RDEPEND="
57 + <dev-python/astroid-2.7[${PYTHON_USEDEP}]
58 + >=dev-python/astroid-2.5.6[${PYTHON_USEDEP}]
59 + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
60 + <dev-python/isort-6[${PYTHON_USEDEP}]
61 + >=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
62 + <dev-python/mccabe-0.7[${PYTHON_USEDEP}]
63 + >=dev-python/toml-0.7.1[${PYTHON_USEDEP}]
64 +"
65 +
66 +PATCHES=(
67 + "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
68 +)
69 +
70 +distutils_enable_sphinx doc --no-autodoc
71 +distutils_enable_tests pytest
72 +
73 +python_test() {
74 + local skipped_tests=(
75 + # No need to run the benchmarks
76 + tests/benchmark/test_baseline_benchmarks.py
77 + # Fails when graphviz is installed (?!)
78 + tests/test_import_graph.py::test_missing_graphviz
79 + # TODO
80 + 'tests/lint/unittest_expand_modules.py::test_expand_modules[files_or_modules1-expected1]'
81 + )
82 + # Specify the test directory explicitly to avoid import file mismatches
83 + epytest tests ${skipped_tests[@]/#/--deselect }
84 +}
85 +
86 +python_install_all() {
87 + if use examples ; then
88 + docompress -x "/usr/share/doc/${PF}/examples"
89 + docinto examples
90 + dodoc -r examples/.
91 + fi
92 +
93 + distutils-r1_python_install_all
94 +}