summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2026-02-09 05:07:56 +0100
committerMichał Górny <mgorny@gentoo.org>2026-02-09 05:28:46 +0100
commitd4b0db91edc5bd58a91e126afe3f92a4792635be (patch)
tree579791d27f12c7f366aaad64b815d7608c65cbf3 /dev-python
parent568efdd37fb03badaa74b6b59b9b21a36733ab8e (diff)
downloadgentoo-d4b0db91edc5bd58a91e126afe3f92a4792635be.tar.gz
gentoo-d4b0db91edc5bd58a91e126afe3f92a4792635be.tar.bz2
gentoo-d4b0db91edc5bd58a91e126afe3f92a4792635be.zip
dev-python/astroid: Bump to 4.1.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/astroid/Manifest1
-rw-r--r--dev-python/astroid/astroid-4.1.0.ebuild91
2 files changed, 92 insertions, 0 deletions
diff --git a/dev-python/astroid/Manifest b/dev-python/astroid/Manifest
index 15b6217be274..af0b506fd754 100644
--- a/dev-python/astroid/Manifest
+++ b/dev-python/astroid/Manifest
@@ -1,3 +1,4 @@
DIST astroid-4.0.2.gh.tar.gz 475834 BLAKE2B 04821506d6a56b914edcd8646f81487c8c78298b873b16f9fd6d79a841a479176aaece23ed470f8191807280b57e8ec954bade01b348ad1251bb065de502706c SHA512 1a407acf1b9d6875d1f9c26958ba5f7d362235fe35b856b6310b62bcd5404edbffa16b01209e69ee4f84d70bc79c68ba734d7d6036c72f5dd83ad3fc26c2e65f
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
diff --git a/dev-python/astroid/astroid-4.1.0.ebuild b/dev-python/astroid/astroid-4.1.0.ebuild
new file mode 100644
index 000000000000..6226956d1bf5
--- /dev/null
+++ b/dev-python/astroid/astroid-4.1.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+
+inherit distutils-r1
+
+MY_P=${P/_/}
+DESCRIPTION="Abstract Syntax Tree for logilab packages"
+HOMEPAGE="
+ https://github.com/pylint-dev/astroid/
+ https://pypi.org/project/astroid/
+"
+SRC_URI="
+ https://github.com/pylint-dev/astroid/archive/v${PV/_/}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+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
+}