1 |
commit: 287815fe9e64f5a6ec1be6072ddb5d20256eec63 |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Thu Jan 30 00:21:06 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 30 00:21:19 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=287815fe |
7 |
|
8 |
dev-python/pylint-2.4.4: Version bump, add py38 |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-2.3.86, Repoman-2.3.20 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
dev-python/pylint/Manifest | 1 + |
15 |
.../files/pylint-2.4.4-no-pytest-runner.patch | 12 +++++ |
16 |
.../pylint/files/pylint-2.4.4-sphinx-theme.patch | 13 +++++ |
17 |
dev-python/pylint/files/pylint-2.4.4-tests.patch | 13 +++++ |
18 |
dev-python/pylint/pylint-2.4.4.ebuild | 58 ++++++++++++++++++++++ |
19 |
5 files changed, 97 insertions(+) |
20 |
|
21 |
diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest |
22 |
index ee1e8267508..0ce1aa3a79b 100644 |
23 |
--- a/dev-python/pylint/Manifest |
24 |
+++ b/dev-python/pylint/Manifest |
25 |
@@ -1,3 +1,4 @@ |
26 |
DIST pylint-1.6.5.tar.gz 465578 BLAKE2B 05412a528878633ef7529dd2f2d2d1989bc9406666626d62764f476bbc024e34fea06883fae829fe6617ebfffde54dfa5600c140b9a25e6c9633f48d76f5c331 SHA512 2fac352dc752b37f1ce4f7fefe5afbbc880d7e6c38f164d1c50734716af1dd6fe31f7d41e145a8256837d5a63b1989efec40c169fc14840cf8eb4e18d9bb2410 |
27 |
DIST pylint-1.8.4.tar.gz 512582 BLAKE2B 623e224ec71756cc2528346ac62b8e58ac4d5ef55d9e31e667d5389aa5b2dad712f60c7e90df5c831f57bf28e0ccbd00ddece4ade46410c28b67adb1a041a85f SHA512 07e55ed3f09326e1973215046e3b172f6065a7ed0ae657cba7a6825a26bb103bdbf8b83126bafd99f332fe0eec3547bcd6e618d6e9f612ddcf9c504bb850dcd9 |
28 |
DIST pylint-2.3.1.tar.gz 577767 BLAKE2B 2af206a9d9be04f369c2bbc39c5ddb80c29a5a39c20d75bfec84498882eab628a7cf5abcc5786933304ed99bd00ffa142b9a58abab348c947799f962b877bb30 SHA512 924d8adc95f04ba750b3b44fe79ac569151ea7c8f693cc9867bcda3878209ebc2202931702b98f80709d161d3781b6e181aea0ded35a3323c023497e2a749ea9 |
29 |
+DIST pylint-2.4.4.tar.gz 646113 BLAKE2B d62b66b056e01cc13e90f45ff4a11f94983e0b9b42b9a05e5c7b7385280000d15ead9a282e7eea31a8ee6a24ffe539576a6e9bd40dc4d89093263da99029123b SHA512 835e0687ebc76c530e0042c5a5188b8aedab446531f621627e990cbeb37ab6ecc8de0f8c6ab171abaa63488e049e8d7782958461421f9a4127435f56b6d2ed0b |
30 |
|
31 |
diff --git a/dev-python/pylint/files/pylint-2.4.4-no-pytest-runner.patch b/dev-python/pylint/files/pylint-2.4.4-no-pytest-runner.patch |
32 |
new file mode 100644 |
33 |
index 00000000000..0d668d01cdc |
34 |
--- /dev/null |
35 |
+++ b/dev-python/pylint/files/pylint-2.4.4-no-pytest-runner.patch |
36 |
@@ -0,0 +1,12 @@ |
37 |
+diff --git a/setup.py b/setup.py |
38 |
+index 4d16b79b..b2a1b9e9 100644 |
39 |
+--- a/setup.py |
40 |
++++ b/setup.py |
41 |
+@@ -143,7 +143,6 @@ def install(**kwargs): |
42 |
+ extras_require=extras_require, |
43 |
+ test_suite="test", |
44 |
+ python_requires=">=3.5.*", |
45 |
+- setup_requires=["pytest-runner"], |
46 |
+ tests_require=["pytest"], |
47 |
+ **kwargs |
48 |
+ ) |
49 |
|
50 |
diff --git a/dev-python/pylint/files/pylint-2.4.4-sphinx-theme.patch b/dev-python/pylint/files/pylint-2.4.4-sphinx-theme.patch |
51 |
new file mode 100644 |
52 |
index 00000000000..1a84400a8d7 |
53 |
--- /dev/null |
54 |
+++ b/dev-python/pylint/files/pylint-2.4.4-sphinx-theme.patch |
55 |
@@ -0,0 +1,13 @@ |
56 |
+diff --git a/doc/conf.py b/doc/conf.py |
57 |
+index 906f0315..caca0c0c 100644 |
58 |
+--- a/doc/conf.py |
59 |
++++ b/doc/conf.py |
60 |
+@@ -100,7 +100,7 @@ pygments_style = "sphinx" |
61 |
+ |
62 |
+ # The theme to use for HTML and HTML Help pages. See the documentation for |
63 |
+ # a list of builtin themes. |
64 |
+-html_theme = "python_docs_theme" |
65 |
++html_theme = "nature" |
66 |
+ |
67 |
+ # Theme options are theme-specific and customize the look and feel of a theme |
68 |
+ # further. For a list of options available for each theme, see the |
69 |
|
70 |
diff --git a/dev-python/pylint/files/pylint-2.4.4-tests.patch b/dev-python/pylint/files/pylint-2.4.4-tests.patch |
71 |
new file mode 100644 |
72 |
index 00000000000..b11ecb7c505 |
73 |
--- /dev/null |
74 |
+++ b/dev-python/pylint/files/pylint-2.4.4-tests.patch |
75 |
@@ -0,0 +1,13 @@ |
76 |
+diff --git a/tests/unittest_lint.py b/tests/unittest_lint.py |
77 |
+index 4f942cd0..d54008bf 100644 |
78 |
+--- a/tests/unittest_lint.py |
79 |
++++ b/tests/unittest_lint.py |
80 |
+@@ -792,7 +792,7 @@ def test_filename_with__init__(init_linter): |
81 |
+ messages = reporter.messages |
82 |
+ assert len(messages) == 0 |
83 |
+ |
84 |
+- |
85 |
++@×××××××××××.skip("known failure, see https://github.com/PyCQA/pylint/issues/3198") |
86 |
+ def test_by_module_statement_value(init_linter): |
87 |
+ """Test "statement" for each module analized of computed correctly.""" |
88 |
+ linter = init_linter |
89 |
|
90 |
diff --git a/dev-python/pylint/pylint-2.4.4.ebuild b/dev-python/pylint/pylint-2.4.4.ebuild |
91 |
new file mode 100644 |
92 |
index 00000000000..7bffb5ac54f |
93 |
--- /dev/null |
94 |
+++ b/dev-python/pylint/pylint-2.4.4.ebuild |
95 |
@@ -0,0 +1,58 @@ |
96 |
+# Copyright 1999-2020 Gentoo Authors |
97 |
+# Distributed under the terms of the GNU General Public License v2 |
98 |
+ |
99 |
+EAPI=7 |
100 |
+ |
101 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
102 |
+PYTHON_REQ_USE="threads(+)" |
103 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
104 |
+# entry_points is added via **kwargs in a dict |
105 |
+_DISTUTILS_SETUPTOOLS_WARNED=1 |
106 |
+ |
107 |
+inherit distutils-r1 eutils |
108 |
+ |
109 |
+DESCRIPTION="Python code static checker" |
110 |
+HOMEPAGE="https://www.logilab.org/project/pylint |
111 |
+ https://pypi.org/project/pylint/ |
112 |
+ https://github.com/pycqa/pylint" |
113 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
114 |
+ |
115 |
+LICENSE="GPL-2" |
116 |
+SLOT="0" |
117 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
118 |
+IUSE="examples test" |
119 |
+RESTRICT="!test? ( test )" |
120 |
+ |
121 |
+RDEPEND=" |
122 |
+ >=dev-python/astroid-2.2.0[${PYTHON_USEDEP}] |
123 |
+ >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] |
124 |
+ dev-python/mccabe[${PYTHON_USEDEP}]" |
125 |
+BDEPEND=" |
126 |
+ test? ( |
127 |
+ ${RDEPEND} |
128 |
+ dev-python/six[${PYTHON_USEDEP}] |
129 |
+ )" |
130 |
+ |
131 |
+PATCHES=( |
132 |
+ "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch" |
133 |
+ "${FILESDIR}/${PN}-2.4.4-no-pytest-runner.patch" |
134 |
+ "${FILESDIR}/${PN}-2.4.4-tests.patch" |
135 |
+) |
136 |
+ |
137 |
+distutils_enable_sphinx doc |
138 |
+distutils_enable_tests pytest |
139 |
+ |
140 |
+python_install_all() { |
141 |
+ doman man/{pylint,pyreverse}.1 |
142 |
+ if use examples ; then |
143 |
+ docinto examples |
144 |
+ dodoc -r examples/. |
145 |
+ fi |
146 |
+ |
147 |
+ distutils-r1_python_install_all |
148 |
+} |
149 |
+ |
150 |
+pkg_postinst() { |
151 |
+ # Optional dependency on "tk" USE flag would break support for Jython. |
152 |
+ optfeature "pylint-gui script requires dev-lang/python with \"tk\" USE flag enabled." 'dev-lang/python[tk]' |
153 |
+} |