summaryrefslogtreecommitdiff
path: root/dev-python/pylint
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
commit29aabba0ea759c6a2864ff5631735b67ee38e5e0 (patch)
treeab466b4dfa7abecb401b2f8039d08af4689306bb /dev-python/pylint
parentd42200bec37eef2a7478d88988ff00addd0a9202 (diff)
gentoo resync : 05.02.2020
Diffstat (limited to 'dev-python/pylint')
-rw-r--r--dev-python/pylint/Manifest7
-rw-r--r--dev-python/pylint/files/pylint-2.4.4-no-pytest-runner.patch12
-rw-r--r--dev-python/pylint/files/pylint-2.4.4-sphinx-theme.patch13
-rw-r--r--dev-python/pylint/files/pylint-2.4.4-tests.patch13
-rw-r--r--dev-python/pylint/pylint-1.6.5-r1.ebuild2
-rw-r--r--dev-python/pylint/pylint-2.4.4.ebuild58
6 files changed, 103 insertions, 2 deletions
diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest
index d583b7442f95..24fa6f6dc5d4 100644
--- a/dev-python/pylint/Manifest
+++ b/dev-python/pylint/Manifest
@@ -1,9 +1,14 @@
AUX pylint-2.3.1-no-pytest-runner.patch 395 BLAKE2B 06d770f92d8772afa9febed3281e70f3aa08ea50b31bf3aaf87dca4acb0a7fabfdae6b5481648ccb7ad6db6f5f9eec29f2da13bbd9689aa080aebafd9aabef51 SHA512 3ae8024c82d426d841106ad43d165524de243d1c72ecf5883d39806f735bff87087db4ac109dc59a3a164e218e3b75647877fb56d52ef8ec387884da2e4b5404
AUX pylint-2.3.1-sphinx-theme.patch 537 BLAKE2B 62f83fdaa8c1ec45f8ef7b03e7aafd85a00358ebcd906f098294356ec0dabf56e31e00a4336edaf4c1b7c5823a555de1aa3314f0f07ae3f729c20ae93e0d23ee SHA512 c5168423de4bcaf945b4d17cd766056f4f1a9c93cb082ea76df25f4335fda05118bf1309b8f622876625a15c0ccdfdb47a2daf2a9da66f87ab4047d0d2e3b656
+AUX pylint-2.4.4-no-pytest-runner.patch 345 BLAKE2B e11b2be3eb2721817d118bc161fd0fa6e7fc36febf1fffaa78f9c5f7810c9e316e59db2e28d07c161a53df34c8948083da5e11915eab18a45039d90e61e4ba28 SHA512 b5fd6fa2a902219515ecb733e338bb0d0389d1dedb947853111c7e7c9c0c83b80e595d854252a344bec6c5a3da3f1976c7b510910ba1fe199d977d70efaff5de
+AUX pylint-2.4.4-sphinx-theme.patch 468 BLAKE2B 741a362b51d35f574b245b4df81309b1b08be7a38ca7fd5c04d6c9ce39bc830e32531a29103d1261d9fea6eecf5f52fb1d4cf74ab0ec3bda5f6299e4edfecf94 SHA512 7f1896819d4f2766a83ce2600754d7a698ce13388de9127e83b42b76b332ae5eb54eb538b9dd5d81dafe1cd5798e703c1f3fd7fa318a8582aa7c2c0db7cc7a30
+AUX pylint-2.4.4-tests.patch 522 BLAKE2B 1ec6a2c49a111a35f50f755b59e0c288e4fa801204b72a0f4f8a6b4ec54fbb35e0bedfcecfae329cf39022fca6c35c99a1b3130dbf63bc0fe5dd6ebcc3a42205 SHA512 d7a22c0f4f9adcef0a3bbeca0321c90c1ebdeee678ff5f2fbb5b404514e110f69ae294fb3bbdf2431e932326d7bdedbefc5fca5cdf145f8221061eae15ff92fd
DIST pylint-1.6.5.tar.gz 465578 BLAKE2B 05412a528878633ef7529dd2f2d2d1989bc9406666626d62764f476bbc024e34fea06883fae829fe6617ebfffde54dfa5600c140b9a25e6c9633f48d76f5c331 SHA512 2fac352dc752b37f1ce4f7fefe5afbbc880d7e6c38f164d1c50734716af1dd6fe31f7d41e145a8256837d5a63b1989efec40c169fc14840cf8eb4e18d9bb2410
DIST pylint-1.8.4.tar.gz 512582 BLAKE2B 623e224ec71756cc2528346ac62b8e58ac4d5ef55d9e31e667d5389aa5b2dad712f60c7e90df5c831f57bf28e0ccbd00ddece4ade46410c28b67adb1a041a85f SHA512 07e55ed3f09326e1973215046e3b172f6065a7ed0ae657cba7a6825a26bb103bdbf8b83126bafd99f332fe0eec3547bcd6e618d6e9f612ddcf9c504bb850dcd9
DIST pylint-2.3.1.tar.gz 577767 BLAKE2B 2af206a9d9be04f369c2bbc39c5ddb80c29a5a39c20d75bfec84498882eab628a7cf5abcc5786933304ed99bd00ffa142b9a58abab348c947799f962b877bb30 SHA512 924d8adc95f04ba750b3b44fe79ac569151ea7c8f693cc9867bcda3878209ebc2202931702b98f80709d161d3781b6e181aea0ded35a3323c023497e2a749ea9
-EBUILD pylint-1.6.5-r1.ebuild 1790 BLAKE2B 47754e5feebe1ec200269230c463fb4ad4df6fe7d9de8e3c9ff493f63c7e8c3e0964019cc31228fff1a0392d2a298e9f64c6790bc48002de13788e2be9b17df9 SHA512 ed478141eb00508d1c83ed7aac059288634cdff5ef6661430ea4b85c1385d4bce5b5bc740947eeb7d4917234b5f57dc3da726ecdcfc46f6ebdd4b484ab6becb2
+DIST pylint-2.4.4.tar.gz 646113 BLAKE2B d62b66b056e01cc13e90f45ff4a11f94983e0b9b42b9a05e5c7b7385280000d15ead9a282e7eea31a8ee6a24ffe539576a6e9bd40dc4d89093263da99029123b SHA512 835e0687ebc76c530e0042c5a5188b8aedab446531f621627e990cbeb37ab6ecc8de0f8c6ab171abaa63488e049e8d7782958461421f9a4127435f56b6d2ed0b
+EBUILD pylint-1.6.5-r1.ebuild 1791 BLAKE2B 7e139c0dff53c6ccc17eac6d37cc865b621e8fc7f2155be3441f92f05946a6e5cfdf0ec708b748c70c57caee87c0a7874da5981d1c7f3ff0dde74083ffc04fba SHA512 3a4ebbe7946d4856ff42731ccf6becbf72f0e7a3d219df088699429f18023a369e1824b055dce4cb9927792e95315dcf8dda19e5cc73662ae6c67391e82a88ab
EBUILD pylint-1.8.4.ebuild 2467 BLAKE2B 1e55ff2939fe5185d4e8deb20acb31143de82a8350d9e39fcf1b091ab2a47dd57d40c617551ad6c67587490f2ac9ac7179ed03ceb92544e55a97e91e3b9c94cd SHA512 7e72496d0c6efe4731945a91f48477a02c8367ea314f370f41a5ea14eb619f4966f973929fe3ee79ae0b8967a11715470312e19b5b1675e197434ef00a648b15
EBUILD pylint-2.3.1.ebuild 1649 BLAKE2B ef78c010054846cad6281e86a3acc9629469d22a58df635986dc82b101c07f349ddc19ae340ced07d7568285d2bff05eafcb246b8877df434a551600a6255b35 SHA512 564c255faa76b208c363b38c69f0e4a29733bf4784e3f62eda9eb54e4222afb5f38c0bd5e3f824216782d3e7659d0ed6e48817aa7508def98d57d13f5d7b650a
+EBUILD pylint-2.4.4.ebuild 1446 BLAKE2B be035ef9f3f7a52ccfc8bf233a07b02178c0597facac153e35362befdcc486ff47f794b9fcd7cf6bd4ef78d02ae928d1867e260d9d1a5c9d1bb6960e938fcd10 SHA512 07a7056f1203691c137c157f500bc0fd9d14cbf77e40871bee1d51c3401bbc6958d3034abfe1c0b72cac729dd6947cc442b1e34be0179ed10ff99e0cd30d45c9
MISC metadata.xml 1074 BLAKE2B 712009f2963542b06e481ae89b331e9ddeec4d2d340ba076f73f12e328906527daeb814a03df11e0c9f12ce5b19c6639f8686294d2673cfd2fcac96c94aef6df SHA512 83ad47c0dfcd143d058267fb1c5d250b9316124a91f431356a881937b4a527a0e23575cf353da8aa678645e6ec4a455b9114ac6ecfa0b36d88ac0623ca66ce57
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
new file mode 100644
index 000000000000..0d668d01cdc9
--- /dev/null
+++ b/dev-python/pylint/files/pylint-2.4.4-no-pytest-runner.patch
@@ -0,0 +1,12 @@
+diff --git a/setup.py b/setup.py
+index 4d16b79b..b2a1b9e9 100644
+--- a/setup.py
++++ b/setup.py
+@@ -143,7 +143,6 @@ def install(**kwargs):
+ extras_require=extras_require,
+ test_suite="test",
+ python_requires=">=3.5.*",
+- setup_requires=["pytest-runner"],
+ tests_require=["pytest"],
+ **kwargs
+ )
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
new file mode 100644
index 000000000000..1a84400a8d78
--- /dev/null
+++ b/dev-python/pylint/files/pylint-2.4.4-sphinx-theme.patch
@@ -0,0 +1,13 @@
+diff --git a/doc/conf.py b/doc/conf.py
+index 906f0315..caca0c0c 100644
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -100,7 +100,7 @@ pygments_style = "sphinx"
+
+ # The theme to use for HTML and HTML Help pages. See the documentation for
+ # a list of builtin themes.
+-html_theme = "python_docs_theme"
++html_theme = "nature"
+
+ # Theme options are theme-specific and customize the look and feel of a theme
+ # further. For a list of options available for each theme, see the
diff --git a/dev-python/pylint/files/pylint-2.4.4-tests.patch b/dev-python/pylint/files/pylint-2.4.4-tests.patch
new file mode 100644
index 000000000000..b11ecb7c505b
--- /dev/null
+++ b/dev-python/pylint/files/pylint-2.4.4-tests.patch
@@ -0,0 +1,13 @@
+diff --git a/tests/unittest_lint.py b/tests/unittest_lint.py
+index 4f942cd0..d54008bf 100644
+--- a/tests/unittest_lint.py
++++ b/tests/unittest_lint.py
+@@ -792,7 +792,7 @@ def test_filename_with__init__(init_linter):
+ messages = reporter.messages
+ assert len(messages) == 0
+
+-
++@pytest.mark.skip("known failure, see https://github.com/PyCQA/pylint/issues/3198")
+ def test_by_module_statement_value(init_linter):
+ """Test "statement" for each module analized of computed correctly."""
+ linter = init_linter
diff --git a/dev-python/pylint/pylint-1.6.5-r1.ebuild b/dev-python/pylint/pylint-1.6.5-r1.ebuild
index b5e847516951..75c33e68cec6 100644
--- a/dev-python/pylint/pylint-1.6.5-r1.ebuild
+++ b/dev-python/pylint/pylint-1.6.5-r1.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86"
+KEYWORDS="~alpha amd64 arm ia64 ppc ppc64 sparc x86"
IUSE="doc examples test"
RDEPEND="
diff --git a/dev-python/pylint/pylint-2.4.4.ebuild b/dev-python/pylint/pylint-2.4.4.ebuild
new file mode 100644
index 000000000000..7bffb5ac54f4
--- /dev/null
+++ b/dev-python/pylint/pylint-2.4.4.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_REQ_USE="threads(+)"
+DISTUTILS_USE_SETUPTOOLS=rdepend
+# entry_points is added via **kwargs in a dict
+_DISTUTILS_SETUPTOOLS_WARNED=1
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="Python code static checker"
+HOMEPAGE="https://www.logilab.org/project/pylint
+ https://pypi.org/project/pylint/
+ https://github.com/pycqa/pylint"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="examples test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/astroid-2.2.0[${PYTHON_USEDEP}]
+ >=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
+ dev-python/mccabe[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? (
+ ${RDEPEND}
+ dev-python/six[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
+ "${FILESDIR}/${PN}-2.4.4-no-pytest-runner.patch"
+ "${FILESDIR}/${PN}-2.4.4-tests.patch"
+)
+
+distutils_enable_sphinx doc
+distutils_enable_tests pytest
+
+python_install_all() {
+ doman man/{pylint,pyreverse}.1
+ if use examples ; then
+ docinto examples
+ dodoc -r examples/.
+ fi
+
+ distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+ # Optional dependency on "tk" USE flag would break support for Jython.
+ optfeature "pylint-gui script requires dev-lang/python with \"tk\" USE flag enabled." 'dev-lang/python[tk]'
+}