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, 27 Apr 2021 07:08:27
Message-Id: 1619507296.71c956eda00dc6dc7faca512e68cc42294caad62.mgorny@gentoo
1 commit: 71c956eda00dc6dc7faca512e68cc42294caad62
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 27 06:42:18 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 27 07:08:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71c956ed
7
8 dev-python/pylint: Bump to 2.8.2
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.2.ebuild | 67 +++++++++++++++++++++++++++++++++++
14 2 files changed, 68 insertions(+)
15
16 diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest
17 index 89204b78b63..b448b2f318f 100644
18 --- a/dev-python/pylint/Manifest
19 +++ b/dev-python/pylint/Manifest
20 @@ -3,3 +3,4 @@ DIST pylint-2.7.2.tar.gz 709177 BLAKE2B 5e4daeb19b6b18d570f4d78b01cc5023d5d24584
21 DIST pylint-2.7.4.tar.gz 715507 BLAKE2B 141506c067195422d0b052924baf87c363c89e28b3279f5173d989ac9247163184840251bd05dfb7dbb765f7b2e921a851fde0323b6c4cc231bc58911c77f692 SHA512 2b7ec9ab3325209021cb0282a6dacabf7ddd1f5e4049157610015ac8c11413471defc9e0528f81e1a60c2b259260f1bde1d04286776b3f32f771968b9866d734
22 DIST pylint-2.8.0.tar.gz 734325 BLAKE2B 479c6f409a7da46d8416c4c06f76937b70ddbffab64d57a9107f9b04283fa985186684d3d146c5ca585a0e8e9369d28e4fbeb5f53262662d94edd862694dd4fa SHA512 d4f6b6c6046265beb0e17b8d375d2604a889bf9b6569d4dae9cdec3f92c8c76d440f6527c9d42f7197a73d4a65fab73f57e5ab99c98d40681119eb051b117211
23 DIST pylint-2.8.1.tar.gz 734583 BLAKE2B eb28c54a952c87f9cf59d18956dbc632ff89f4d3a91423a84ee3d4468e5af5fe7fcf37288964af0f36884bc0c46d400e2414bbf114a4a06f75a5c8da50ba9030 SHA512 ec8710396f07cdec8a395748ffda403a1f3fbd00094a1ad32e976c52be946c08b9e32521205dc165a0284467c68d9f467be40d141907bcd148b94e285eeca606
24 +DIST pylint-2.8.2.gh.tar.gz 734667 BLAKE2B 1525273298f39163de4db7946a749768cb9bcf7e11f89791944ccb5fb8d0918eedfc80d5e559d33934d468dd5781d4cb4921b9407daf2842613a8e3ba7d134e0 SHA512 7023603668f540ecc0b35f3289377855c4c0df01e04a9af255f5c8031f568f6b76508bb3a7f0aba8e76a86b63eae423908c30f47258d6dee46bb23320c952701
25
26 diff --git a/dev-python/pylint/pylint-2.8.2.ebuild b/dev-python/pylint/pylint-2.8.2.ebuild
27 new file mode 100644
28 index 00000000000..e47c80f8b64
29 --- /dev/null
30 +++ b/dev-python/pylint/pylint-2.8.2.ebuild
31 @@ -0,0 +1,67 @@
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/v${PV}.tar.gz -> ${P}.gh.tar.gz"
49 +
50 +LICENSE="GPL-2"
51 +SLOT="0"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
53 +IUSE="examples"
54 +
55 +RDEPEND="
56 + <dev-python/astroid-2.7[${PYTHON_USEDEP}]
57 + >=dev-python/astroid-2.5.6[${PYTHON_USEDEP}]
58 + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
59 + <dev-python/isort-6[${PYTHON_USEDEP}]
60 + >=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
61 + <dev-python/mccabe-0.7[${PYTHON_USEDEP}]
62 + >=dev-python/toml-0.7.1[${PYTHON_USEDEP}]
63 +"
64 +BDEPEND="
65 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
66 +"
67 +
68 +PATCHES=(
69 + "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
70 +)
71 +
72 +distutils_enable_sphinx doc --no-autodoc
73 +distutils_enable_tests pytest
74 +
75 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
76 +
77 +python_test() {
78 + local skipped_tests=(
79 + # No need to run the benchmarks
80 + tests/benchmark/test_baseline_benchmarks.py
81 + # Fails when graphviz is installed (?!)
82 + tests/test_import_graph.py::test_missing_graphviz
83 + # TODO
84 + 'tests/lint/unittest_expand_modules.py::test_expand_modules[files_or_modules1-expected1]'
85 + )
86 + # Specify the test directory explicitly to avoid import file mismatches
87 + epytest tests ${skipped_tests[@]/#/--deselect }
88 +}
89 +
90 +python_install_all() {
91 + if use examples ; then
92 + docompress -x "/usr/share/doc/${PF}/examples"
93 + docinto examples
94 + dodoc -r examples/.
95 + fi
96 +
97 + distutils-r1_python_install_all
98 +}