re-add pylint-2.12.1 from main

This commit is contained in:
Andreas Billmeier 2021-12-29 01:08:45 +01:00 committed by Andreas Billmeier
parent f898d220ac
commit e6cd6ded9f
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
2 changed files with 66 additions and 0 deletions

View File

@ -1,4 +1,6 @@
AUX pylint-2.4.4-sphinx-theme.patch 468 BLAKE2B 741a362b51d35f574b245b4df81309b1b08be7a38ca7fd5c04d6c9ce39bc830e32531a29103d1261d9fea6eecf5f52fb1d4cf74ab0ec3bda5f6299e4edfecf94 SHA512 7f1896819d4f2766a83ce2600754d7a698ce13388de9127e83b42b76b332ae5eb54eb538b9dd5d81dafe1cd5798e703c1f3fd7fa318a8582aa7c2c0db7cc7a30
DIST pylint-2.11.1.gh.tar.gz 967223 BLAKE2B 435bb4589fa6dbfadfa234f8cb968a1d5c39efaf9b37fd20dfadc6feb1e997b34124386dab777b1aa1657bd9a36055d535e231181c71834517528cbbc04c698f SHA512 fe283b6eb8090414ea99809158b4e7f9fe85187ef6488ec37c5f34430793b0b4ff8afd9c97452fe0bb88efb9be001c0fd9f9a09a23081cb79084ae409b277f34
DIST pylint-2.12.1.gh.tar.gz 1025764 BLAKE2B 650cf89a6b1d39be1eb6e9595e26e84c8f2beb62deebc0886e6a507bcfd7ee4ce87094fd05a139297ea5a4afc4ae5bb2af655bb245d95ac6946f8989efab5531 SHA512 f758775b6ecc8b73096e3556b3c22c81d84baa12d7623448aaa9e2ac19ff5b99112938ee7c8daf7122dbdb4d2b41012a7606213972a2dcf855b450a0a74f0d1e
EBUILD pylint-2.11.1.ebuild 1446 BLAKE2B 22e0190fa982ef1ec9362541d671f7530c58eee446e6aae86aacf9005733fecea7e79a243a21712262881ec651e48883887c73cf93f6e3661c130eda71c9c672 SHA512 a86edbe78d689af2a42e06bae4299c44a1ad3119682234baba5a985c3a318f5ff82ea509abf7a3b5b6ae98f391a7c576662e5f7d6183bf0f54030f49f8b9a85d
EBUILD pylint-2.12.1.ebuild 1719 BLAKE2B 5e094e57e6f2eb5a52f7df2ec286abdaba56782cdd1a5cb9c82be2cf0861a849011de71a6952f7b63ba42031ec8bcdec2fac3eff4c7be83b08ebd91575a81fb9 SHA512 5466523a8c2e4af168700ef98e6f74cb04afa5365fb0840753b0dc14e253258c357e85817e80ac8cebbc07ee016ae601a8e39b85e98badcfbc8d6436f461738e
MISC metadata.xml 1100 BLAKE2B 98ac44b343a44471afed50ea76c658142056bba3e3e0a75e7a3854c6e196eb55eeb466611c4d2976787fe4e5d4c13c1f434cad8afaece76f3ba04cd94197906f SHA512 78b52b43ebc944c60d037adb4874fcbe72a2ac713b713ac3b9a226966db2fabf0b31a11e16dcf26243cc19c62841928ac4bb32f5eef69f9d6ef9cb0222362bbf

View File

@ -0,0 +1,64 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
PYTHON_REQ_USE="threads(+)"
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="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="examples"
# Make sure to check https://github.com/PyCQA/pylint/blob/main/setup.cfg#L43 on bumps
# Adjust dep bounds!
RDEPEND="
<dev-python/astroid-2.10[${PYTHON_USEDEP}]
>=dev-python/astroid-2.9.0[${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.9.2[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/typing-extensions[${PYTHON_USEDEP}]
' python3_{8,9})
"
BDEPEND="test? ( >=dev-python/GitPython-3[${PYTHON_USEDEP}] )"
PATCHES=(
"${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
)
distutils_enable_sphinx doc --no-autodoc
distutils_enable_tests pytest
python_test() {
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
}
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
}