From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- dev-python/pylint/Manifest | 14 +++--- dev-python/pylint/pylint-2.13.5.ebuild | 81 --------------------------------- dev-python/pylint/pylint-2.13.7.ebuild | 81 --------------------------------- dev-python/pylint/pylint-2.13.8.ebuild | 81 --------------------------------- dev-python/pylint/pylint-2.13.9.ebuild | 82 ++++++++++++++++++++++++++++++++++ dev-python/pylint/pylint-2.14.1.ebuild | 80 +++++++++++++++++++++++++++++++++ dev-python/pylint/pylint-2.14.2.ebuild | 80 +++++++++++++++++++++++++++++++++ dev-python/pylint/pylint-2.14.3.ebuild | 80 +++++++++++++++++++++++++++++++++ 8 files changed, 330 insertions(+), 249 deletions(-) delete mode 100644 dev-python/pylint/pylint-2.13.5.ebuild delete mode 100644 dev-python/pylint/pylint-2.13.7.ebuild delete mode 100644 dev-python/pylint/pylint-2.13.8.ebuild create mode 100644 dev-python/pylint/pylint-2.13.9.ebuild create mode 100644 dev-python/pylint/pylint-2.14.1.ebuild create mode 100644 dev-python/pylint/pylint-2.14.2.ebuild create mode 100644 dev-python/pylint/pylint-2.14.3.ebuild (limited to 'dev-python/pylint') diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest index 2f9a27197283..7af408bc04fd 100644 --- a/dev-python/pylint/Manifest +++ b/dev-python/pylint/Manifest @@ -1,8 +1,10 @@ AUX pylint-2.4.4-sphinx-theme.patch 468 BLAKE2B 741a362b51d35f574b245b4df81309b1b08be7a38ca7fd5c04d6c9ce39bc830e32531a29103d1261d9fea6eecf5f52fb1d4cf74ab0ec3bda5f6299e4edfecf94 SHA512 7f1896819d4f2766a83ce2600754d7a698ce13388de9127e83b42b76b332ae5eb54eb538b9dd5d81dafe1cd5798e703c1f3fd7fa318a8582aa7c2c0db7cc7a30 -DIST pylint-2.13.5.gh.tar.gz 1118551 BLAKE2B 70ee4254aa140aba16adfe67aeb896d9c455843dfa945d335b5ba48e85c9d2d8f057223bc74bd4c0c0bfa2d343a9f78e783705b885caaee6895fcddf7ce23ccb SHA512 e399239fbea58260b17f226dddb63f1e6a2f12cdd601a4e73913a169d23fe2b6085e776bf8144e2c5a555dfdc1b28a5818a4103969d504b638b6b41ee296d182 -DIST pylint-2.13.7.gh.tar.gz 1120083 BLAKE2B c45d6ec65c11d3682bf3279969f3e45b827b2bbcebbfeb05a31df3a93bb943bf9643a5d467c1e2eebf717577032571a48db1ce84e1c81d72000808ec302aaf1b SHA512 ec0b2ef565239ab3e577c5c2d22c1c8df8b8bb0858c34b6606f649484d69a25c1f51ca61a3da66833d9a713e8a686dc32b940e574650577bdcc4e13d76acc2e5 -DIST pylint-2.13.8.gh.tar.gz 1121081 BLAKE2B 06a0a5c3801318ca45073f04a631e0617b5803ce01fd3973fc96d350c38a988222d4b8b03f86c12c317f6f87db5b7b85d1c428373a17e51d1044b382a0d03c1d SHA512 8ab01a15da7d9b659aa11de3ee804e0ad54fefd549be468fe194f8ec66640f5ecbdeddec468c9fd76d1eea8006d60249b1abba59d5047774d22b7b461224695d -EBUILD pylint-2.13.5.ebuild 2201 BLAKE2B b63bbce7df072dcb2092a09962aa1040ecd8631586f925550c7e83942d8c1dfad07763a099c4b1cb4862968ecc2f7297dc4bf0eb3357a4ac140ff4748b7f6fb1 SHA512 02a543138358a50d7e068af511f48dfc5db2e41c514a274ddf08dd9e864dbb80818a90703082d747a3343b40b67ae6031dabd5cadc306c957b6eaacab9976aef -EBUILD pylint-2.13.7.ebuild 2209 BLAKE2B 0127039c27fa8488bd52f2b3d2e1d52a05ac4ae1773254098ccb052797f2253d44449f9d7347f81131e8d25cb87b828e1f2d91a8381fc21ff13fea9e0477bb8f SHA512 c3b946fa2523f220278db8a915f4c6c047754e760920ed33bf76fbbeea7638c23096a05298046d1c1773be487ac05e2ebe6cd997396045306d2f083cab5ede2a -EBUILD pylint-2.13.8.ebuild 2209 BLAKE2B 0127039c27fa8488bd52f2b3d2e1d52a05ac4ae1773254098ccb052797f2253d44449f9d7347f81131e8d25cb87b828e1f2d91a8381fc21ff13fea9e0477bb8f SHA512 c3b946fa2523f220278db8a915f4c6c047754e760920ed33bf76fbbeea7638c23096a05298046d1c1773be487ac05e2ebe6cd997396045306d2f083cab5ede2a +DIST pylint-2.13.9.gh.tar.gz 1123216 BLAKE2B f80e88f565595b16bba650a009bfdd6d55efa65227898d145d4867c116c89c7ab5244c509382f0e9023404b4e46accb742334450ca7342394fb4d0abaccb8d03 SHA512 dcea90b1b1494d928f0b12dd2b50ee1d97a74efce18e0ef54ea02b52209a574977971e12db8f476edcf1bd646ca41c6a77bcf9a425c01af71bd29e54fd6c20b9 +DIST pylint-2.14.1.gh.tar.gz 1270750 BLAKE2B 120cc78c3d76ccb10f88c94b5528f1ed42730b49ac7daea4c1e65cd82fa2aea2c7d77a3a26dcb84201c69afeceb538cddf1ba740af308b586624ee3d40656d49 SHA512 4be985bb78e4b2bd65a195b95fdeb2a95c59c82db2446c9c365b11f0ba57e2a3234a41865071272cb054647a15e7e1a8b48d034ca656a3a44ca509648f258c13 +DIST pylint-2.14.2.gh.tar.gz 1273238 BLAKE2B c242d1686f34c1b7bdefea29a031f43dfa40de8cf33f9ab7c23c7278d2abe0df63de28693717aa68b45eeeb4a7d3b8bf442ab85181826eea2282454ba04381b5 SHA512 977b84164f87cf7cf98f761d4a4977526c7098aeef4eea4cf057d6884ff368bd7ef52e483c1eb623f026343c8c6dcd961dd5301db8dd1ac9ba2ef4edb0c517fe +DIST pylint-2.14.3.gh.tar.gz 1274008 BLAKE2B 0303cb43a4bb93419c0823dc17eb9f43a53ff1b38b0dfda185d785805839baef60b155220f6cecd43615ef783b005a44139a333df2961f736c76c513c2d6b757 SHA512 a2fd2ab2589e01188b8f587363cafba430626fffd20360cb4353a3d5a9fc5402103e74d2e4671e3d25526ed9625f77a49fc27bb0af931478f4c38ad99cf3c25a +EBUILD pylint-2.13.9.ebuild 2272 BLAKE2B 3f4323a6c4c4571c8fbaeec14046cb290cdfbd41af303c44d8b11bd0e3dca19743ebe166c2c1163ceaeb184bf4bbc50a2fe5f66272f2706cccb0ef973defc492 SHA512 8050139759ca4109aa412b61995cdb7c13a7b23dc37cca9be22692498198253f71e178d6496361d6208ef1f824ec61857429e4e60cc8c1d8d553f4cb0968bd7b +EBUILD pylint-2.14.1.ebuild 2260 BLAKE2B 6ab54d876288e7c8911686f5c9b5edfde88a231767287e9e7682d5a09cb0d1281afec3c0a9fd5cf81b440e975f52f8fa46d54aa17a73622b231ed924fa1a4c15 SHA512 04fa0d3689363653e2fa622479061df9819d03935d948b8fc8f4ef410b26039a47e164eab1aef3e19bd02504b0a6c385d86a41733f65c8d81a8bd088d080dc74 +EBUILD pylint-2.14.2.ebuild 2260 BLAKE2B 09777087ce75264713a36908d5182f09c52776b0f6a7ba2a8fd09b6a8aaba5a648a657e10b040aff68d544a1247e6408a8a650771546c7f1969206e4e264a389 SHA512 f5c1bc119cf5a6c6eb7f843ab01dd4d553a46c3ecfd3dec43315e74c375091c4e0cb01045c61138f5750ca0e6ae06860af6e29664862bb31973a2fce7a8dcff4 +EBUILD pylint-2.14.3.ebuild 2260 BLAKE2B 09777087ce75264713a36908d5182f09c52776b0f6a7ba2a8fd09b6a8aaba5a648a657e10b040aff68d544a1247e6408a8a650771546c7f1969206e4e264a389 SHA512 f5c1bc119cf5a6c6eb7f843ab01dd4d553a46c3ecfd3dec43315e74c375091c4e0cb01045c61138f5750ca0e6ae06860af6e29664862bb31973a2fce7a8dcff4 MISC metadata.xml 1100 BLAKE2B 97ec6bd2f6cf487afb93136e9ee58d0d5f8ad37e2ded456ed4f196e73fd37cddead2462d3592b44ca1a6c3722b1f194905238299f0c066945d1e22bdb18acc9b SHA512 0418d987879446fd76fe9b7fc4ee8b1c3c0d9bbab1d1fc3eb66eada0bc52f6b6480cf9852dc3a18b1915d2093642b9c87f24207e89b34d3e48c29a282a3ba979 diff --git a/dev-python/pylint/pylint-2.13.5.ebuild b/dev-python/pylint/pylint-2.13.5.ebuild deleted file mode 100644 index 3589b92787e3..000000000000 --- a/dev-python/pylint/pylint-2.13.5.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Python code static checker" -HOMEPAGE=" - 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="~alpha 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.11.0[${PYTHON_USEDEP}] - >=dev-python/dill-0.2[${PYTHON_USEDEP}] - >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] - =dev-python/mccabe-0.6[${PYTHON_USEDEP}] - =dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] - >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/typing-extensions[${PYTHON_USEDEP}] - ' 3.8 3.9) -" -BDEPEND=" - test? ( - >=dev-python/GitPython-3[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/typing-extensions[${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 - - # TODO - 'tests/test_functional.py::test_functional[forgotten_debug_statement_py37]' - 'tests/test_functional.py::test_functional[dataclass_with_field]' - 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 - ) - # 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 -} diff --git a/dev-python/pylint/pylint-2.13.7.ebuild b/dev-python/pylint/pylint-2.13.7.ebuild deleted file mode 100644 index 899511134c63..000000000000 --- a/dev-python/pylint/pylint-2.13.7.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Python code static checker" -HOMEPAGE=" - 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="~alpha ~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.11.3[${PYTHON_USEDEP}] - >=dev-python/dill-0.2[${PYTHON_USEDEP}] - >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] - =dev-python/mccabe-0.6[${PYTHON_USEDEP}] - =dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] - >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/typing-extensions[${PYTHON_USEDEP}] - ' 3.8 3.9) -" -BDEPEND=" - test? ( - >=dev-python/GitPython-3[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/typing-extensions[${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 - - # TODO - 'tests/test_functional.py::test_functional[forgotten_debug_statement_py37]' - 'tests/test_functional.py::test_functional[dataclass_with_field]' - 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 - ) - # 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 -} diff --git a/dev-python/pylint/pylint-2.13.8.ebuild b/dev-python/pylint/pylint-2.13.8.ebuild deleted file mode 100644 index 899511134c63..000000000000 --- a/dev-python/pylint/pylint-2.13.8.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Python code static checker" -HOMEPAGE=" - 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="~alpha ~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.11.3[${PYTHON_USEDEP}] - >=dev-python/dill-0.2[${PYTHON_USEDEP}] - >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] - =dev-python/mccabe-0.6[${PYTHON_USEDEP}] - =dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] - >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/typing-extensions[${PYTHON_USEDEP}] - ' 3.8 3.9) -" -BDEPEND=" - test? ( - >=dev-python/GitPython-3[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/typing-extensions[${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 - - # TODO - 'tests/test_functional.py::test_functional[forgotten_debug_statement_py37]' - 'tests/test_functional.py::test_functional[dataclass_with_field]' - 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 - ) - # 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 -} diff --git a/dev-python/pylint/pylint-2.13.9.ebuild b/dev-python/pylint/pylint-2.13.9.ebuild new file mode 100644 index 000000000000..ac80bff11993 --- /dev/null +++ b/dev-python/pylint/pylint-2.13.9.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python code static checker" +HOMEPAGE=" + 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="~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.11.5[${PYTHON_USEDEP}] + >=dev-python/dill-0.2[${PYTHON_USEDEP}] + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] + =dev-python/mccabe-0.6[${PYTHON_USEDEP}] + =dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] + >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/typing-extensions[${PYTHON_USEDEP}] + ' 3.8 3.9) +" +BDEPEND=" + test? ( + >=dev-python/GitPython-3[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/typing-extensions[${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 + + # 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 + ) + # 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 +} diff --git a/dev-python/pylint/pylint-2.14.1.ebuild b/dev-python/pylint/pylint-2.14.1.ebuild new file mode 100644 index 000000000000..9dd158928f4a --- /dev/null +++ b/dev-python/pylint/pylint-2.14.1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python code static checker" +HOMEPAGE=" + 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="~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.11.5[${PYTHON_USEDEP}] + >=dev-python/dill-0.2[${PYTHON_USEDEP}] + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] + =dev-python/mccabe-0.6[${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) +" +BDEPEND=" + test? ( + >=dev-python/GitPython-3[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + ) +" + +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 + + # 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 + ) + 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 +} diff --git a/dev-python/pylint/pylint-2.14.2.ebuild b/dev-python/pylint/pylint-2.14.2.ebuild new file mode 100644 index 000000000000..9001edad3fc2 --- /dev/null +++ b/dev-python/pylint/pylint-2.14.2.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python code static checker" +HOMEPAGE=" + 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="~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.11.6[${PYTHON_USEDEP}] + >=dev-python/dill-0.2[${PYTHON_USEDEP}] + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] + =dev-python/mccabe-0.6[${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) +" +BDEPEND=" + test? ( + >=dev-python/GitPython-3[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + ) +" + +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 + + # 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 + ) + 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 +} diff --git a/dev-python/pylint/pylint-2.14.3.ebuild b/dev-python/pylint/pylint-2.14.3.ebuild new file mode 100644 index 000000000000..9001edad3fc2 --- /dev/null +++ b/dev-python/pylint/pylint-2.14.3.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python code static checker" +HOMEPAGE=" + 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="~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.11.6[${PYTHON_USEDEP}] + >=dev-python/dill-0.2[${PYTHON_USEDEP}] + >=dev-python/isort-4.2.5[${PYTHON_USEDEP}] + =dev-python/mccabe-0.6[${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) +" +BDEPEND=" + test? ( + >=dev-python/GitPython-3[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + ) +" + +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 + + # 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 + ) + 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 +} -- cgit v1.2.3