Skip to content

Commit c0aa9af

Browse files
committed
dev-python/pylint: new package, add 3.2.2
Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/3525 Signed-off-by: Andreas Billmeier <[email protected]>
1 parent 4321864 commit c0aa9af

File tree

4 files changed

+114
-2
lines changed

4 files changed

+114
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
606606

607607
## Licenses
608608
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.
609-
There are 1947 Ebuilds in total, 1936 of them have in total 1959 (42 different) licenses assigned.
609+
There are 1948 Ebuilds in total, 1937 of them have in total 1960 (42 different) licenses assigned.
610610

611611
|License| Ebuilds using it|
612612
|-------|-----|
@@ -615,7 +615,7 @@ There are 1947 Ebuilds in total, 1936 of them have in total 1959 (42 different)
615615
|GPL-3|114|
616616
|BSD|111|
617617
|LGPL-3|25|
618-
|GPL-2|22|
618+
|GPL-2|23|
619619
|GPL-3+|16|
620620
|BSD-2|14|
621621
|all-rights-reserved|14|

dev-python/pylint/Manifest

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
DIST pylint-3.2.2.gh.tar.gz 1443983 BLAKE2B aeff52756e03278da1db7478d0c95ca0d5fa0c8a15203ada4b30fe5fb2fa56bfc2fc60e020bee9b2e242339214cf383838c93cbf1369a82655bedd62e3b2634f SHA512 84d625b0cd1ea0c308ff4381a9f553663af52fec534856a258ee50f00ec7238cf9af98d1e2c851522a8bd440c55e318d5c89035652d872cbd812d19ff14a0698
2+
EBUILD pylint-3.2.2.ebuild 2400 BLAKE2B be94dc547e3d71c54d1fcc110d9ab1faed0713faa943d3859f69dcd6e66f8cbb440dc44fd5a5f38554ddc80c7cc20ad149074536438a581a2697f45fe140c3a4 SHA512 951d20368a2e63ff41da8dda5d8339d2e24ed8cceec12dd11b6034ac2d270789fcebe845348d39b6d4f5a7d28f3defa7f6a83af5e95b2904f38e6ea52e6c0c3f
3+
MISC metadata.xml 530 BLAKE2B e869d0801d5c6090e36311c3180fd9e1d72feebd397baa4a11ee7f3eae247b318a8c17fe3f9c8707ad7954fc972c0841032effb1a6d70bd5e4c2178d2adb816d SHA512 ded66e22c33ba81983a49a6ea151eb36bd84a9d1edfb5383382838befdc2dff80dbc6b9144d9982e5905a80db34fd24671cd10e17813cab290a76f844442daaa

dev-python/pylint/metadata.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="project">
5+
<email>[email protected]</email>
6+
<name>Andreas Billmeier</name>
7+
</maintainer>
8+
<upstream>
9+
<remote-id type="pypi">pylint</remote-id>
10+
<remote-id type="github">pylint-dev/pylint</remote-id>
11+
<maintainer status="unknown">
12+
<email>[email protected]</email>
13+
<name>Python Code Quality Authority</name>
14+
</maintainer>
15+
</upstream>
16+
</pkgmetadata>

dev-python/pylint/pylint-3.2.2.ebuild

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
DISTUTILS_USE_PEP517=setuptools
7+
PYTHON_COMPAT=( python3_{11..13} )
8+
PYTHON_REQ_USE="threads(+)"
9+
10+
inherit distutils-r1
11+
12+
MY_P=${P/_beta/b}
13+
DESCRIPTION="Python code static checker"
14+
HOMEPAGE="
15+
https://pypi.org/project/pylint/
16+
https://github.com/pylint-dev/pylint/
17+
"
18+
SRC_URI="
19+
https://github.com/pylint-dev/pylint/archive/v${PV/_beta/b}.tar.gz
20+
-> ${MY_P}.gh.tar.gz
21+
"
22+
S=${WORKDIR}/${MY_P}
23+
24+
LICENSE="GPL-2"
25+
SLOT="0"
26+
KEYWORDS="amd64 arm arm64 x86"
27+
IUSE="examples"
28+
29+
RDEPEND="
30+
<dev-python/astroid-3.3[${PYTHON_USEDEP}]
31+
>=dev-python/astroid-3.2.2[${PYTHON_USEDEP}]
32+
>=dev-python/dill-0.3.7[${PYTHON_USEDEP}]
33+
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
34+
<dev-python/isort-6[${PYTHON_USEDEP}]
35+
>=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
36+
<dev-python/mccabe-0.8[${PYTHON_USEDEP}]
37+
>=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}]
38+
>=dev-python/tomlkit-0.10.1[${PYTHON_USEDEP}]
39+
$(python_gen_cond_dep '
40+
>=dev-python/tomli-1.1.0[${PYTHON_USEDEP}]
41+
' 3.10)
42+
"
43+
BDEPEND="
44+
test? (
45+
$(python_gen_cond_dep '
46+
>=dev-python/GitPython-3[${PYTHON_USEDEP}]
47+
' 'python*' )
48+
<dev-python/pytest-8[${PYTHON_USEDEP}]
49+
dev-python/pytest-timeout[${PYTHON_USEDEP}]
50+
dev-python/typing-extensions[${PYTHON_USEDEP}]
51+
)
52+
"
53+
54+
distutils_enable_tests pytest
55+
56+
python_test() {
57+
local EPYTEST_DESELECT=(
58+
# TODO
59+
'tests/test_functional.py::test_functional[dataclass_with_field]'
60+
'tests/test_functional.py::test_functional[no_name_in_module]'
61+
'tests/test_functional.py::test_functional[recursion_error_3159]'
62+
'tests/test_functional.py::test_functional[shadowed_import]'
63+
'tests/test_functional.py::test_functional[use_yield_from]'
64+
'tests/test_functional.py::test_functional[wrong_import_order]'
65+
)
66+
local EPYTEST_IGNORE=(
67+
# No need to run the benchmarks
68+
tests/benchmark/test_baseline_benchmarks.py
69+
)
70+
71+
if ! has_version "dev-python/GitPython[${PYTHON_USEDEP}]"; then
72+
EPYTEST_IGNORE+=(
73+
tests/profile/test_profile_against_externals.py
74+
tests/testutils/_primer/test_package_to_lint.py
75+
tests/testutils/_primer/test_primer.py
76+
)
77+
fi
78+
79+
rm -rf pylint || die
80+
81+
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
82+
epytest -p timeout
83+
}
84+
85+
python_install_all() {
86+
if use examples ; then
87+
docompress -x "/usr/share/doc/${PF}/examples"
88+
docinto examples
89+
dodoc -r examples/.
90+
fi
91+
92+
distutils-r1_python_install_all
93+
}

0 commit comments

Comments
 (0)