dev-python/pylint: new package, add 3.2.2

Closes: #3525
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
Andreas Billmeier 2024-06-26 16:46:00 +02:00
parent 4321864bee
commit c0aa9af2cc
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 114 additions and 2 deletions

View File

@ -606,7 +606,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 1947 Ebuilds in total, 1936 of them have in total 1959 (42 different) licenses assigned.
There are 1948 Ebuilds in total, 1937 of them have in total 1960 (42 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
@ -615,7 +615,7 @@ There are 1947 Ebuilds in total, 1936 of them have in total 1959 (42 different)
|GPL-3|114|
|BSD|111|
|LGPL-3|25|
|GPL-2|22|
|GPL-2|23|
|GPL-3+|16|
|BSD-2|14|
|all-rights-reserved|14|

View File

@ -0,0 +1,3 @@
DIST pylint-3.2.2.gh.tar.gz 1443983 BLAKE2B aeff52756e03278da1db7478d0c95ca0d5fa0c8a15203ada4b30fe5fb2fa56bfc2fc60e020bee9b2e242339214cf383838c93cbf1369a82655bedd62e3b2634f SHA512 84d625b0cd1ea0c308ff4381a9f553663af52fec534856a258ee50f00ec7238cf9af98d1e2c851522a8bd440c55e318d5c89035652d872cbd812d19ff14a0698
EBUILD pylint-3.2.2.ebuild 2400 BLAKE2B be94dc547e3d71c54d1fcc110d9ab1faed0713faa943d3859f69dcd6e66f8cbb440dc44fd5a5f38554ddc80c7cc20ad149074536438a581a2697f45fe140c3a4 SHA512 951d20368a2e63ff41da8dda5d8339d2e24ed8cceec12dd11b6034ac2d270789fcebe845348d39b6d4f5a7d28f3defa7f6a83af5e95b2904f38e6ea52e6c0c3f
MISC metadata.xml 530 BLAKE2B e869d0801d5c6090e36311c3180fd9e1d72feebd397baa4a11ee7f3eae247b318a8c17fe3f9c8707ad7954fc972c0841032effb1a6d70bd5e4c2178d2adb816d SHA512 ded66e22c33ba81983a49a6ea151eb36bd84a9d1edfb5383382838befdc2dff80dbc6b9144d9982e5905a80db34fd24671cd10e17813cab290a76f844442daaa

View File

@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">pylint</remote-id>
<remote-id type="github">pylint-dev/pylint</remote-id>
<maintainer status="unknown">
<email>code-quality@python.org</email>
<name>Python Code Quality Authority</name>
</maintainer>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,93 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1
MY_P=${P/_beta/b}
DESCRIPTION="Python code static checker"
HOMEPAGE="
https://pypi.org/project/pylint/
https://github.com/pylint-dev/pylint/
"
SRC_URI="
https://github.com/pylint-dev/pylint/archive/v${PV/_beta/b}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="examples"
RDEPEND="
<dev-python/astroid-3.3[${PYTHON_USEDEP}]
>=dev-python/astroid-3.2.2[${PYTHON_USEDEP}]
>=dev-python/dill-0.3.7[${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.8[${PYTHON_USEDEP}]
>=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}]
>=dev-python/tomlkit-0.10.1[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
>=dev-python/tomli-1.1.0[${PYTHON_USEDEP}]
' 3.10)
"
BDEPEND="
test? (
$(python_gen_cond_dep '
>=dev-python/GitPython-3[${PYTHON_USEDEP}]
' 'python*' )
<dev-python/pytest-8[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_test() {
local EPYTEST_DESELECT=(
# TODO
'tests/test_functional.py::test_functional[dataclass_with_field]'
'tests/test_functional.py::test_functional[no_name_in_module]'
'tests/test_functional.py::test_functional[recursion_error_3159]'
'tests/test_functional.py::test_functional[shadowed_import]'
'tests/test_functional.py::test_functional[use_yield_from]'
'tests/test_functional.py::test_functional[wrong_import_order]'
)
local EPYTEST_IGNORE=(
# No need to run the benchmarks
tests/benchmark/test_baseline_benchmarks.py
)
if ! has_version "dev-python/GitPython[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=(
tests/profile/test_profile_against_externals.py
tests/testutils/_primer/test_package_to_lint.py
tests/testutils/_primer/test_primer.py
)
fi
rm -rf pylint || die
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest -p timeout
}
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
}