diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-08-10 04:19:21 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-08-10 04:24:47 +0200 |
| commit | 8ce87ba1c7fe2fb67a0166e0ea4a9e9b6da2140d (patch) | |
| tree | 222b9e26316d896e451512d69febbfa3aefe4777 /dev-python | |
| parent | 69cfc26a80610f5c7c794758f738ed2713e08a5e (diff) | |
| download | gentoo-8ce87ba1c7fe2fb67a0166e0ea4a9e9b6da2140d.tar.gz gentoo-8ce87ba1c7fe2fb67a0166e0ea4a9e9b6da2140d.tar.bz2 gentoo-8ce87ba1c7fe2fb67a0166e0ea4a9e9b6da2140d.zip | |
dev-python/pylint: Bump to 3.3.8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/pylint/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pylint/pylint-3.3.8.ebuild | 89 |
2 files changed, 90 insertions, 0 deletions
diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest index 10724f06215d..17a58af9a62f 100644 --- a/dev-python/pylint/Manifest +++ b/dev-python/pylint/Manifest @@ -1 +1,2 @@ DIST pylint-3.3.7.gh.tar.gz 1457480 BLAKE2B b938f673af78ec94a59f1f6aa33c5be3ba605c59df35d39f95414bce92ec33b9033d7608f0803bfdf0196e49c11eda2e2e88b692003d6f7c4e3b99df89da7653 SHA512 b9aa9510004642cd6463f66613bdcf0030cb8cf2ecbc288dbf2d6165c0d08d673bf7f2c38fa5b8c666e98f9644084e8cbbe572e9778bc56db3eefac70d145e6c +DIST pylint-3.3.8.gh.tar.gz 1460704 BLAKE2B 9444f6f98278b300744de27796afc366a53a295f101f22dab454dd0c4eb1a755954d06a71d42effb5139c7d4f3821421bf0734602c2ff0ecd520e5bb8edf44cf SHA512 be796582d8b7ffac2c1ec8be6f4c40422ad4353ccc83a43f31d149cb124ee7a29294ea81457cd173be85be37d94c0472c7599cb2b002b7188cfa3c70185c4e98 diff --git a/dev-python/pylint/pylint-3.3.8.ebuild b/dev-python/pylint/pylint-3.3.8.ebuild new file mode 100644 index 000000000000..7957d768c1c3 --- /dev/null +++ b/dev-python/pylint/pylint-3.3.8.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} pypy3_11 ) +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="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="examples" + +RDEPEND=" + <dev-python/astroid-3.4[${PYTHON_USEDEP}] + >=dev-python/astroid-3.3.8[${PYTHON_USEDEP}] + >=dev-python/dill-0.3.7[${PYTHON_USEDEP}] + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] + <dev-python/isort-7[${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}] +" +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + >=dev-python/gitpython-3[${PYTHON_USEDEP}] + ' 'python*' ) + >=dev-python/pytest-8.3[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.12[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( pytest-timeout) +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[shadowed_import]' + 'tests/test_functional.py::test_functional[unused_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 + + epytest +} + +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 +} |
