re-add pylint-2.14.3 (from main)

This commit is contained in:
2022-07-16 15:38:42 +02:00
committed by Andreas Billmeier
parent 575a4730ab
commit 72d44b540a
5 changed files with 13 additions and 95 deletions

View File

@@ -524,7 +524,7 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
## Licenses
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
There are 1768 Ebuilds in total, 1761 of them have in total 1770 (35 different) licenses assigned.
There are 1767 Ebuilds in total, 1760 of them have in total 1769 (35 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
@@ -533,7 +533,7 @@ There are 1768 Ebuilds in total, 1761 of them have in total 1770 (35 different)
|GPL-3|106|
|BSD|102|
|LGPL-3|29|
|GPL-2|23|
|GPL-2|22|
|LGPL-3+|18|
|GPL-3+|14|
|all-rights-reserved|13|

View File

@@ -1,6 +1,3 @@
AUX pylint-2.4.4-sphinx-theme.patch 468 BLAKE2B 741a362b51d35f574b245b4df81309b1b08be7a38ca7fd5c04d6c9ce39bc830e32531a29103d1261d9fea6eecf5f52fb1d4cf74ab0ec3bda5f6299e4edfecf94 SHA512 7f1896819d4f2766a83ce2600754d7a698ce13388de9127e83b42b76b332ae5eb54eb538b9dd5d81dafe1cd5798e703c1f3fd7fa318a8582aa7c2c0db7cc7a30
DIST pylint-2.12.1.gh.tar.gz 1025764 BLAKE2B 650cf89a6b1d39be1eb6e9595e26e84c8f2beb62deebc0886e6a507bcfd7ee4ce87094fd05a139297ea5a4afc4ae5bb2af655bb245d95ac6946f8989efab5531 SHA512 f758775b6ecc8b73096e3556b3c22c81d84baa12d7623448aaa9e2ac19ff5b99112938ee7c8daf7122dbdb4d2b41012a7606213972a2dcf855b450a0a74f0d1e
DIST pylint-2.13.3.gh.tar.gz 1116747 BLAKE2B 9ab6ff4746f78472de9c248754d102e55e8cb60d3ead8c5079cfe851b2b7c8e16afc9b0be02041cf24e789784200b90751ad0bcf172eb6d4edd88463863d18ac SHA512 0bda6d89219ad6f7f64f1361f95b85a34e3bc70f9f18f71eaa3d69deb47ab6fc056000c13a11c8c5644f0a9789eac2a5c262ddcf96302aeebfa16aa2e3b3086c
EBUILD pylint-2.12.1.ebuild 1689 BLAKE2B c270f3ef22b92cfd876a0c93c805e9a5258b528e0a79a3f986bedb98936bd85a563da13c9025d2863b65c486186d7a5d05604dd91c0437cac6dbe3700729a197 SHA512 1a227c68e328f2e64eb84fb38e310caa0176c0a72bac1527d7347407f0743f17a08c142270bf2199774249a2545b6a0e746ecd2a4940bdd89d57617fe70eab55
EBUILD pylint-2.13.3.ebuild 2210 BLAKE2B b57c755ea980cc98de17048e730fef7bf5258bd9e2f1ed09ea42816f2d2fbd361f14f457bf5e7ffe0e988bba81ac0573ba009281d30966a27a75ba6682444126 SHA512 79a800eb6e9946d5bc8bfa0e0e2638944f9bd9db73f3ade0499eec8775e49e2cdcaf61e3f1f7b33fe5223d7d2cbacbd21f3bc6dcdf80faf22c66264639483031
DIST pylint-2.14.3.gh.tar.gz 1274008 BLAKE2B 0303cb43a4bb93419c0823dc17eb9f43a53ff1b38b0dfda185d785805839baef60b155220f6cecd43615ef783b005a44139a333df2961f736c76c513c2d6b757 SHA512 a2fd2ab2589e01188b8f587363cafba430626fffd20360cb4353a3d5a9fc5402103e74d2e4671e3d25526ed9625f77a49fc27bb0af931478f4c38ad99cf3c25a
EBUILD pylint-2.14.3.ebuild 2260 BLAKE2B 09777087ce75264713a36908d5182f09c52776b0f6a7ba2a8fd09b6a8aaba5a648a657e10b040aff68d544a1247e6408a8a650771546c7f1969206e4e264a389 SHA512 f5c1bc119cf5a6c6eb7f843ab01dd4d553a46c3ecfd3dec43315e74c375091c4e0cb01045c61138f5750ca0e6ae06860af6e29664862bb31973a2fce7a8dcff4
MISC metadata.xml 1100 BLAKE2B 98ac44b343a44471afed50ea76c658142056bba3e3e0a75e7a3854c6e196eb55eeb466611c4d2976787fe4e5d4c13c1f434cad8afaece76f3ba04cd94197906f SHA512 78b52b43ebc944c60d037adb4874fcbe72a2ac713b713ac3b9a226966db2fabf0b31a11e16dcf26243cc19c62841928ac4bb32f5eef69f9d6ef9cb0222362bbf

View File

@@ -1,13 +0,0 @@
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

View File

@@ -1,64 +0,0 @@
# Copyright 1999-2022 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 x86 ~amd64-linux ~x86-linux"
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
}

View File

@@ -11,9 +11,8 @@ 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/
https://github.com/PyCQA/pylint/
"
SRC_URI="
https://github.com/pycqa/pylint/archive/v${PV}.tar.gz
@@ -22,14 +21,14 @@ SRC_URI="
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~m68k ~ppc ~riscv ~x86"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~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.12[${PYTHON_USEDEP}]
>=dev-python/astroid-2.11.0[${PYTHON_USEDEP}]
>=dev-python/astroid-2.11.6[${PYTHON_USEDEP}]
>=dev-python/dill-0.2[${PYTHON_USEDEP}]
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
<dev-python/isort-6[${PYTHON_USEDEP}]
@@ -37,6 +36,7 @@ RDEPEND="
<dev-python/mccabe-0.8[${PYTHON_USEDEP}]
>=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}]
>=dev-python/tomli-1.1.0[${PYTHON_USEDEP}]
>=dev-python/tomlkit-0.10.1[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/typing-extensions[${PYTHON_USEDEP}]
' 3.8 3.9)
@@ -49,14 +49,11 @@ BDEPEND="
)
"
PATCHES=(
"${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
)
distutils_enable_sphinx doc --no-autodoc
distutils_enable_tests pytest
python_test() {
rm -rf pylint || die
local EPYTEST_DESELECT=(
# No need to run the benchmarks
tests/benchmark/test_baseline_benchmarks.py
@@ -64,11 +61,12 @@ python_test() {
# TODO
'tests/test_functional.py::test_functional[forgotten_debug_statement_py37]'
'tests/test_functional.py::test_functional[dataclass_with_field]'
'tests/test_functional.py::test_functional[no_name_in_module]'
tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_error_msg
tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_info_msg
tests/config/pylint_config/test_run_pylint_config.py::test_invocation_of_pylint_config
)
# Specify the test directory explicitly to avoid import file mismatches
epytest tests
epytest
}
python_install_all() {