From c3c5ea4e678aa75840f715ea1aaa8ce13567281e Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Wed, 8 Feb 2023 16:08:35 +0800 Subject: python3-astroid: upgrade 2.13.2 -> 2.14.1 Changelog ========== * Revert "CallContext" change as it caused a "RecursionError" regression. * Add support for inferring binary union types added in Python 3.10. * Capture and log messages emitted when inspecting a module for astroid. * Revert "CallContext" change as it caused a "RecursionError" regression. * Fix issues with "typing_extensions.TypeVar". * Fix "ClassDef.fromlino" for PyPy 3.8 (v7.3.11) if class is wrapped by a decorator. * Preserve parent CallContext when inferring nested functions. * Add "Lock" to the "multiprocessing" brain. * Fix a regression in 2.13.2 where a RunTimeError could be raised unexpectedly. * Fix overwritten attributes in inherited dataclasses not being ordered correctly. * Fix a false positive when an attribute named "Enum" was confused with "enum.Enum". Calls to "Enum" are now inferred & the qualified name is checked. * Remove unnecessary typing_extensions dependency on Python 3.11 and newer Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-astroid_2.14.1.bb | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-astroid_2.14.1.bb (limited to 'meta-python/recipes-devtools/python/python3-astroid_2.14.1.bb') diff --git a/meta-python/recipes-devtools/python/python3-astroid_2.14.1.bb b/meta-python/recipes-devtools/python/python3-astroid_2.14.1.bb new file mode 100644 index 0000000000..e59d1d9991 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-astroid_2.14.1.bb @@ -0,0 +1,39 @@ +SUMMARY = "An abstract syntax tree for Python with inference support." +HOMEPAGE = "https://pypi.python.org/pypi/astroid" +SECTION = "devel/python" +LICENSE = "LGPL-2.1-only" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a70cf540abf41acb644ac3b621b2fad1" + +SRC_URI[sha256sum] = "bd1aa4f9915c98e8aaebcd4e71930154d4e8c9aaf05d35ac0a63d1956091ae3f" + +SRC_URI += " \ + file://0001-pyproject.toml-Replace-with.patch \ +" + +inherit pypi python_setuptools_build_meta + +DEPENDS += "\ + ${PYTHON_PN}-pytest-runner-native \ + ${PYTHON_PN}-wheel-native \ +" + +PACKAGES =+ "${PN}-tests" + +FILES:${PN}-tests += " \ + ${PYTHON_SITEPACKAGES_DIR}/astroid/test* \ + ${PYTHON_SITEPACKAGES_DIR}/astroid/__pycache__/test* \ +" + +RDEPENDS:${PN}:class-target += "\ + ${PYTHON_PN}-distutils \ + ${PYTHON_PN}-lazy-object-proxy \ + ${PYTHON_PN}-logging \ + ${PYTHON_PN}-six \ + ${PYTHON_PN}-wrapt \ + ${PYTHON_PN}-setuptools \ +" + +RDEPENDS:${PN}-tests:class-target += "\ + ${PYTHON_PN}-unittest \ + ${PYTHON_PN}-xml \ +" -- cgit v1.2.3-54-g00ecf