From 5d96fd323f36ec2e05b4a9c85163df3a140cc19c Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 14 May 2024 17:09:48 +0800 Subject: python3-astroid: upgrade 3.1.0 -> 3.2.0 Changelog: =========== - .pyi stub files are now preferred over .py files when resolving imports, (except for numpy). - igetattr() returns the last same-named function in a class (instead of the first). This avoids false positives in pylint with @overload. - Adds module_denylist to AstroidManager for modules to be skipped during AST generation. Modules in this list will cause an AstroidImportError to be raised when an AST for them is requested. - Make astroid.interpreter._import.util.is_namespace only consider modules using a loader set to NamespaceLoader or None as namespaces. This fixes a problem that six.moves brain was not effective if six.moves was already imported. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-astroid_3.2.0.bb | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-astroid_3.2.0.bb (limited to 'meta-python/recipes-devtools/python/python3-astroid_3.2.0.bb') diff --git a/meta-python/recipes-devtools/python/python3-astroid_3.2.0.bb b/meta-python/recipes-devtools/python/python3-astroid_3.2.0.bb new file mode 100644 index 0000000000..e97494fd9a --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-astroid_3.2.0.bb @@ -0,0 +1,37 @@ +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] = "f7f829f8506ade59f1b3c6c93d8fac5b1ebc721685fa9af23e9794daf1d450a3" + +inherit pypi python_setuptools_build_meta + +DEPENDS += "\ + python3-pytest-runner-native \ + python3-wheel-native \ +" + +PACKAGES =+ "${PN}-tests" + +FILES:${PN}-tests += " \ + ${PYTHON_SITEPACKAGES_DIR}/astroid/test* \ + ${PYTHON_SITEPACKAGES_DIR}/astroid/__pycache__/test* \ +" + +RDEPENDS:${PN}:class-target += "\ + python3-lazy-object-proxy \ + python3-logging \ + python3-six \ + python3-wrapt \ + python3-setuptools \ + python3-typing-extensions \ +" + +RDEPENDS:${PN}-tests:class-target += "\ + python3-unittest \ + python3-xml \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf