commit: 3f1448aabb713c0252b56bd1029fa36cfd3f02f3 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Feb 23 03:06:23 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Feb 23 03:06:23 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f1448aa
dev-python/astroid: Bump to 4.1.1 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/astroid/Manifest | 2 + dev-python/astroid/astroid-4.1.1.ebuild | 86 +++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/dev-python/astroid/Manifest b/dev-python/astroid/Manifest index 27ca71bc2eb8..30be9923d555 100644 --- a/dev-python/astroid/Manifest +++ b/dev-python/astroid/Manifest @@ -1,3 +1,5 @@ DIST astroid-4.0.3.gh.tar.gz 476645 BLAKE2B e71fe0b9d0eb8e318134bb7037c6599a8bca308963f28789e5fe4d68449777dfb29fb711a109359d6d037e58fe775372822115f608e09d95cf9891e132bfc04a SHA512 ef5988ba87b2fe6524715385aa8f8055c01910bf244ce8bdf089ac2325a65217b75a7d8070828735fb3ad5f8b9967d204541982a96ba769a8ac03066dfc21c18 DIST astroid-4.0.4.gh.tar.gz 476682 BLAKE2B 513e70a4cf4791a3493bf43a1544d9eaf7dcda1c6b6602edba7314455507aff70d5f137d798243671848a9a9c070d39b6aea6442f3f15506959a4f066418b855 SHA512 37b7dffa92e7ca2e4a2039d9f0c4ff1235daa5e64d6bcaeffd9ed9240c5b24fd6c2f2508c4b20844f3be7bd5daaf98d5ed72f87b65c2288c40ffe7cb0446ddf3 DIST astroid-4.1.0.gh.tar.gz 482678 BLAKE2B a4c586283b255ae07804aee8223be3a6b487ab38c13587830540947ff7f36c5e7cebd639bfb876f412588b25f1ae9401bdaf4e8d672bf372c8b81eae849ee6f7 SHA512 b5a9c5599b63282719ba96a0c28be85df64a991ad914eebd2ed70eb265f840556000cff7e5de4ff97eba1ea18aed931078cc79a2e5fc707433a9a7683c6ac149 +DIST astroid-4.1.1.tar.gz 412522 BLAKE2B 471d486d3769b76d1588542f7c306252f5d669f568b781ad85eb3acf1fe215c5dc2f925d9ddea183c993537a2d827320d1b709dcf0266253cc7f08c3ed0f959b SHA512 80ff3a9dd3c848faf6654d346c68537e3d9c62fdb07499642a4a844ee79bd00969177d74c238f82689572644d5ec436cc0d7e57f246a239125d4535e864b8fbb +DIST astroid-4.1.1.tar.gz.provenance 9575 BLAKE2B 3acaf0df98d359bce120b0c3566acdd8f62a3736e5e33441485981ac1700a75557a986562ce8535a1620fafa5b4015556c660f3ea0a3631d3fef1ebca7f44156 SHA512 3c8f012689e1bd3a2cbd7cf1651aabfd21dd0a3a2b861964e856c1a2e48cceda953067276f0c8295fb322cfc48b868e6d9b4e59f596b77c240065358f433b16b diff --git a/dev-python/astroid/astroid-4.1.1.ebuild b/dev-python/astroid/astroid-4.1.1.ebuild new file mode 100644 index 000000000000..ad006c3ae958 --- /dev/null +++ b/dev-python/astroid/astroid-4.1.1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_VERIFY_REPO=https://github.com/pylint-dev/astroid +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Abstract Syntax Tree for logilab packages" +HOMEPAGE=" + https://github.com/pylint-dev/astroid/ + https://pypi.org/project/astroid/ +" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# dev-python/regex isn't available for pypy +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/attrs[${PYTHON_USEDEP}] + >=dev-python/numpy-1.17.0[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/regex[${PYTHON_USEDEP}] + ' 'python*') + ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + +python_test() { + local EPYTEST_IGNORE=() + local EPYTEST_DESELECT=( + # hangs randomly + tests/test_nodes.py::AsStringTest::test_recursion_error_trapped + # no clue why they're broken + tests/test_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part + # TODO + tests/test_builder.py::BuilderTest::test_data_build_error_filename + # numpy-2 (https://github.com/pylint-dev/astroid/issues/2442) + tests/brain/numpy/test_core_einsumfunc.py::test_numpy_function_calls_inferred_as_ndarray + tests/brain/numpy/test_core_fromnumeric.py::BrainNumpyCoreFromNumericTest::test_numpy_function_calls_inferred_as_ndarray + tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest::test_numpy_function_calls_inferred_as_ndarray + tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_datetime_astype_return + tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_generic_types_are_subscriptables + tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_functions_return_type + tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_functions_return_type_tuple + # old pythons only + tests/brain/test_dataclasses.py::test_pydantic_field + tests/test_regrtest.py::NonRegressionTests::test_numpy_distutils + # -Werror, sigh + tests/test_nodes.py::test_deprecated_nodes_import_from_toplevel + ) + + if ! has_version "dev-python/mypy[${PYTHON_USEDEP}]"; then + EPYTEST_IGNORE+=( + tests/test_raw_building.py + ) + fi + + case ${EPYTHON} in + pypy3.11) + EPYTEST_DESELECT+=( + tests/brain/test_gi.py::GiBrainClassificationTest::test_gi_function_classification + ) + ;; + esac + + if has_version ">=dev-python/setuptools-82[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + # tests a package using pkg_resources + tests/test_manager.py::AstroidManagerTest::test_identify_old_namespace_package_protocol + ) + fi + + epytest +}
