Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pylint/
Date: Tue, 27 Feb 2018 22:59:21
Message-Id: 1519772340.6c990a9fd3e56d41b768ee3283c141bdfb7cda56.monsieurp@gentoo
1 commit: 6c990a9fd3e56d41b768ee3283c141bdfb7cda56
2 Author: kapsh <kapsh <AT> kap <DOT> sh>
3 AuthorDate: Tue Feb 27 05:18:04 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 27 22:59:00 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c990a9f
7
8 dev-python/pylint: version bump to 1.8.2.
9
10 Closes: https://bugs.gentoo.org/644208
11 Closes: https://github.com/gentoo/gentoo/pull/7265
12
13 dev-python/pylint/Manifest | 1 +
14 dev-python/pylint/pylint-1.8.2.ebuild | 65 +++++++++++++++++++++++++++++++++++
15 2 files changed, 66 insertions(+)
16
17 diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest
18 index c753ea8c311..4beb4310b41 100644
19 --- a/dev-python/pylint/Manifest
20 +++ b/dev-python/pylint/Manifest
21 @@ -1,3 +1,4 @@
22 DIST pylint-1.6.5.tar.gz 465578 BLAKE2B 05412a528878633ef7529dd2f2d2d1989bc9406666626d62764f476bbc024e34fea06883fae829fe6617ebfffde54dfa5600c140b9a25e6c9633f48d76f5c331 SHA512 2fac352dc752b37f1ce4f7fefe5afbbc880d7e6c38f164d1c50734716af1dd6fe31f7d41e145a8256837d5a63b1989efec40c169fc14840cf8eb4e18d9bb2410
23 DIST pylint-1.7.2.tar.gz 488628 BLAKE2B 6f2902bdd18939f251515d652d2e9df43162c1b0c27c2e2ed7392ee77be9e7f81bbd62cede4f2eb1e7aa646bf47c48b01436e04cbf46a20458a1c89eff752d9d SHA512 268f141f017fa4df6024596bcf1dfb32a578e9459864e2ace8c2725c8f5e117e0b01d9d745f1632bb43102a01f7075dc3fb69b839b79371f7df47740a56fc1cb
24 DIST pylint-1.7.5.tar.gz 486892 BLAKE2B 0a415045e16aeb6e8543af003cff3061756b01bcbeb9f62de7cf1a63356ff01c3a2fd079e51ee0f8b1b797dd3de29c14d9928c0b4d0214fda82fbc2dc12010c6 SHA512 9f28cc4f88b26d2299ab3ea015935fba8c96f700c7898ad8fbdecfa0902f10a4ca54ad346b18452f8a589f8b63494bc12487dab36d168f336012b259bfa6f3f8
25 +DIST pylint-1.8.2.tar.gz 510319 BLAKE2B fd2d28d48cc5b7690428baf3e4a4ba56a6c59dd3bae6fac12046f2c087f1f6d033f4c318f2977d3ee3cc6a463a089a02364f0e38859c2eba5a39dbe6350e19ec SHA512 3cec971314bcc9ad7aa32d6641797adb0adc440414cfe982a10777ffeecfc64588f9c1d8c6d8074131b1389fe5ecb2e6aea5c24ba3047f917a60d12808b52d8c
26
27 diff --git a/dev-python/pylint/pylint-1.8.2.ebuild b/dev-python/pylint/pylint-1.8.2.ebuild
28 new file mode 100644
29 index 00000000000..3bf9b99e1a3
30 --- /dev/null
31 +++ b/dev-python/pylint/pylint-1.8.2.ebuild
32 @@ -0,0 +1,65 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
39 +PYTHON_REQ_USE="threads(+)"
40 +
41 +inherit distutils-r1 eutils
42 +
43 +DESCRIPTION="Python code static checker"
44 +HOMEPAGE="http://www.logilab.org/project/pylint
45 + https://pypi.python.org/pypi/pylint
46 + https://github.com/pycqa/pylint"
47 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
52 +IUSE="doc examples test"
53 +
54 +RDEPEND="
55 + >=dev-python/astroid-1.5.1[${PYTHON_USEDEP}]
56 + dev-python/six[${PYTHON_USEDEP}]
57 + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
58 + dev-python/mccabe[${PYTHON_USEDEP}]
59 + virtual/python-singledispatch[${PYTHON_USEDEP}]
60 + $(python_gen_cond_dep '
61 + dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]
62 + dev-python/configparser[${PYTHON_USEDEP}]' -2)"
63 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
64 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
65 + test? ( ${RDEPEND}
66 + <dev-python/pytest-3.3[${PYTHON_USEDEP}] )"
67 +
68 +python_prepare_all() {
69 + # remove unused dep
70 + sed -i -e '/pytest-runner/d' setup.py || die
71 +
72 + distutils-r1_python_prepare_all
73 +}
74 +
75 +python_compile_all() {
76 + # selection of straight html triggers a trivial annoying bug, we skirt it
77 + use doc && PYTHONPATH="${S}" emake -e -C doc singlehtml
78 +}
79 +
80 +python_test() {
81 + py.test -v || die "Tests fail with ${EPYTHON}"
82 +}
83 +
84 +python_install_all() {
85 + doman man/{pylint,pyreverse}.1
86 + if use examples ; then
87 + docinto examples
88 + dodoc -r examples/.
89 + fi
90 + use doc && local HTML_DOCS=( doc/_build/singlehtml/. )
91 + distutils-r1_python_install_all
92 +}
93 +
94 +pkg_postinst() {
95 + # Optional dependency on "tk" USE flag would break support for Jython.
96 + optfeature "pylint-gui script requires dev-lang/python with \"tk\" USE flag enabled." 'dev-lang/python[tk]'
97 +}