update pylint-2.11.1
This commit is contained in:
parent
356b976dde
commit
60ae93ffee
|
@ -1,8 +1,4 @@
|
|||
AUX pylint-2.4.4-sphinx-theme.patch 468 BLAKE2B 741a362b51d35f574b245b4df81309b1b08be7a38ca7fd5c04d6c9ce39bc830e32531a29103d1261d9fea6eecf5f52fb1d4cf74ab0ec3bda5f6299e4edfecf94 SHA512 7f1896819d4f2766a83ce2600754d7a698ce13388de9127e83b42b76b332ae5eb54eb538b9dd5d81dafe1cd5798e703c1f3fd7fa318a8582aa7c2c0db7cc7a30
|
||||
DIST pylint-2.6.0.tar.gz 680289 BLAKE2B f7d4159478f667a3234beefd148857f26c8f7ea3aae3bfa70fa06fe2a8d86fcf22a0727a9fa5d8fc3de4aa0bb7a4d6e13bf68029f359122762d1e0d24a0b715b SHA512 02881fe14401bbe946618ef947c8db320a6c8dd93626402260d60468538ce67b61d1e8b921bfb1a6020514dd392e9b0021c97ddb60b45866c2d2241224f93f08
|
||||
DIST pylint-2.8.3.gh.tar.gz 734705 BLAKE2B fd1dafd8bcd1addf83cfe943d88f408e26cdad981c4b881a02b1aee28cbc8bc5813bd15ce45104c48839b14771026e4b76312fabe12e9c404d1bb42813e61a4b SHA512 0a326b37cb2e2b0a60f1b3ede88e20be0b7ba2ff95860f65eafd9b6034df0206f681156d0de08c7fd8e3366e2bda9fcd0139143b331a340be7c1655cab65d6eb
|
||||
DIST pylint-2.9.5.gh.tar.gz 778090 BLAKE2B cbcf5427665f56cc37afd08fb537fcc3f17697ca7cdbd7da97bad4093f344c9b961a156f5d141e070fa84c7e07293175a70585a8c996c9cffb7cef80717752af SHA512 84695bae88704391752f4b0944e39f5b44933fee8d88a8839729845b93bbe59876da08ab98645217c4ff2a98fd793a92063123b25a595fb332ce0a3943bcf7e7
|
||||
EBUILD pylint-2.6.0.ebuild 1559 BLAKE2B 471f27a0dbcc117c01c2e4c7fa3153f97bf32454bc7a801c248d5e966da2319a5975636c117e3c05082af549c15c691552f8a4768d3787dd9d5a521ffcd73f65 SHA512 62e61f80d4ba078965d7b2dd1f424b0c286393808f41596a4e58a899ccc22c411c7d7e54ef0d8f1df711815b3f557d7fb9bfa26325e464761d15c59a3e764660
|
||||
EBUILD pylint-2.8.3.ebuild 1740 BLAKE2B c1199f66ba7c0f97bd8a91b50d754564b953b23098f590c4d170c15ca0e8642dca414d973971986e9e2e6153dec9af6a5db0c67e551b9cc981c5a7bced2cd239 SHA512 8cb67e64d73deb35206ae787116a8f295c050ee6c9c1b496beace4f08b026e2b50ef6ce3c4c9579bd97b781b402cfb14467f92e73c679110d4aaf7a189b21ec7
|
||||
EBUILD pylint-2.9.5.ebuild 1424 BLAKE2B a8e024e6460e91525470f51b6010e436384a0a8b44c86af88553aa2a60d7b36c16851566f1a90d6c7cbafed48fd839c6def04e871790c525e672caf6bebff244 SHA512 901678329e3c7a09be3d0d359d3b692ba5663d6f361a84db07c583a3f58525a73d43f044f12f675f937b06b00ce443125f1f26500f51b9af06625b975daf30f7
|
||||
MISC metadata.xml 471 BLAKE2B 752d34ba23d911d1b415210e55183213d9e3f7e39b1ac83f50d5dd45e0ac4b51b5c46870d9a13493c21a5268f0b1ceeb25b875c415e88ffe26cac990762ece69 SHA512 e16bf2ddc8773a018a9f2095075517865091b6b51dd9df4a1a15dc6848798240efc3372d73820a020b7823069abc08b2bd6f5345bda9e49fae68fdf9ac90be26
|
||||
DIST pylint-2.11.1.gh.tar.gz 967223 BLAKE2B 435bb4589fa6dbfadfa234f8cb968a1d5c39efaf9b37fd20dfadc6feb1e997b34124386dab777b1aa1657bd9a36055d535e231181c71834517528cbbc04c698f SHA512 fe283b6eb8090414ea99809158b4e7f9fe85187ef6488ec37c5f34430793b0b4ff8afd9c97452fe0bb88efb9be001c0fd9f9a09a23081cb79084ae409b277f34
|
||||
EBUILD pylint-2.11.1.ebuild 1444 BLAKE2B b42a90326d85c9d3534b66f619b297c4255e04ecbd4f008d185ef1f35854f01381d040619227c71663be534a59f6cd5b606d47b4231afd1812bc5eb18c240c6d SHA512 0f5f4be70bca93f12c4ccf6e0dfdab0b5886dd3fe22c2a82f4c2f412a5439f969c60d4b6bd34d085183eb296e462a224e8c3097b9f55295fc33c532927415900
|
||||
MISC metadata.xml 1100 BLAKE2B 98ac44b343a44471afed50ea76c658142056bba3e3e0a75e7a3854c6e196eb55eeb466611c4d2976787fe4e5d4c13c1f434cad8afaece76f3ba04cd94197906f SHA512 78b52b43ebc944c60d037adb4874fcbe72a2ac713b713ac3b9a226966db2fabf0b31a11e16dcf26243cc19c62841928ac4bb32f5eef69f9d6ef9cb0222362bbf
|
||||
|
|
|
@ -1,15 +1,24 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>b@edevau.net</email>
|
||||
<name>Andreas Billmeier</name>
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Pylint is a Python source code analyzer which looks for programming errors,
|
||||
helps enforcing a coding standard and sniffs for some code smells (as
|
||||
defined in Martin Fowler's Refactoring book). Pylint can be seen as
|
||||
another PyChecker since nearly all tests you can do with PyChecker can also
|
||||
be done with Pylint. However, Pylint offers some more features, like
|
||||
checking length of lines of code, checking if variable names are
|
||||
well-formed according to your coding standard, or checking if declared
|
||||
interfaces are truly implemented, and much more. Additionally, it is
|
||||
possible to write plugins to add your own checks.
|
||||
</longdescription>
|
||||
<stabilize-allarches/>
|
||||
<upstream>
|
||||
<remote-id type="pypi">pylint</remote-id>
|
||||
<maintainer status="unknown">
|
||||
<email>code-quality@python.org</email>
|
||||
<name>Python Code Quality Authority</name>
|
||||
</maintainer>
|
||||
<remote-id type="github">pycqa/pylint</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
@ -17,16 +17,17 @@ SRC_URI="
|
|||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~m68k ppc ppc64 ~riscv sparc x86"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/astroid-2.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/astroid-2.6.5[${PYTHON_USEDEP}]
|
||||
<dev-python/astroid-2.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/astroid-2.7.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||
<dev-python/isort-6[${PYTHON_USEDEP}]
|
||||
>=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/mccabe-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/toml-0.7.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
|
@ -38,12 +39,12 @@ distutils_enable_sphinx doc --no-autodoc
|
|||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local skipped_tests=(
|
||||
local EPYTEST_DESELECT=(
|
||||
# No need to run the benchmarks
|
||||
tests/benchmark/test_baseline_benchmarks.py
|
||||
)
|
||||
# Specify the test directory explicitly to avoid import file mismatches
|
||||
epytest tests ${skipped_tests[@]/#/--deselect }
|
||||
epytest tests
|
||||
}
|
||||
|
||||
python_install_all() {
|
|
@ -1,64 +0,0 @@
|
|||
# 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 optfeature
|
||||
|
||||
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.3.3[${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.5.3-tests.patch"
|
||||
)
|
||||
|
||||
distutils_enable_sphinx doc
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# we don't want to run the benchmarking tests
|
||||
rm -f tests/benchmark/test_baseline_benchmarks.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
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]'
|
||||
}
|
|
@ -1,67 +0,0 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python code static checker"
|
||||
HOMEPAGE="https://www.logilab.org/project/pylint
|
||||
https://pypi.org/project/pylint/
|
||||
https://github.com/pycqa/pylint/"
|
||||
SRC_URI="
|
||||
https://github.com/pycqa/pylint/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 sparc x86"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/astroid-2.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/astroid-2.5.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||
<dev-python/isort-6[${PYTHON_USEDEP}]
|
||||
>=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/mccabe-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/toml-0.7.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
|
||||
)
|
||||
|
||||
distutils_enable_sphinx doc --no-autodoc
|
||||
distutils_enable_tests pytest
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||
|
||||
python_test() {
|
||||
local skipped_tests=(
|
||||
# No need to run the benchmarks
|
||||
tests/benchmark/test_baseline_benchmarks.py
|
||||
# Fails when graphviz is installed (?!)
|
||||
tests/test_import_graph.py::test_missing_graphviz
|
||||
# TODO
|
||||
'tests/lint/unittest_expand_modules.py::test_expand_modules[files_or_modules1-expected1]'
|
||||
)
|
||||
# Specify the test directory explicitly to avoid import file mismatches
|
||||
epytest tests ${skipped_tests[@]/#/--deselect }
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples ; then
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
docinto examples
|
||||
dodoc -r examples/.
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
Loading…
Reference in New Issue