From 59ccd2e91af5ed6f5378ec52ecdab11cf6dd922c Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Wed, 6 Mar 2024 16:43:14 +0800 Subject: python3-astroid: upgrade 3.0.3 -> 3.1.0 Changelog: ========== -Include PEP 695 (Python 3.12) generic type syntax nodes in get_children(), allowing checkers to visit them. -Add __main__ as a possible inferred value for __name__ to improve control flow inference around if __name__ == "__main__": guards. -Following a deprecation period, the names arg to the Import constructor and the op arg to the BoolOp constructor are now required, and the doc args to the PartialFunction and Property constructors have been removed (call postinit(doc_node=...) instead.) -Following a deprecation announced in astroid 1.5.0, the alias AstroidBuildingException is removed in favor of AstroidBuildingError. -Include modname in AST warnings. Useful for invalid escape sequence warnings with Python 3.12. -RecursionError is now trapped and logged out as UserWarning during astroid node transformations with instructions about raising the system recursion limit. Suppress SyntaxWarning for invalid escape sequences on Python 3.12 when parsing modules. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-astroid_3.0.3.bb | 37 ---------------------- .../python/python3-astroid_3.1.0.bb | 37 ++++++++++++++++++++++ 2 files changed, 37 insertions(+), 37 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-astroid_3.0.3.bb create mode 100644 meta-python/recipes-devtools/python/python3-astroid_3.1.0.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-astroid_3.0.3.bb b/meta-python/recipes-devtools/python/python3-astroid_3.0.3.bb deleted file mode 100644 index b02b15113b..0000000000 --- a/meta-python/recipes-devtools/python/python3-astroid_3.0.3.bb +++ /dev/null @@ -1,37 +0,0 @@ -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] = "4148645659b08b70d72460ed1921158027a9e53ae8b7234149b1400eddacbb93" - -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" diff --git a/meta-python/recipes-devtools/python/python3-astroid_3.1.0.bb b/meta-python/recipes-devtools/python/python3-astroid_3.1.0.bb new file mode 100644 index 0000000000..3c68f1e583 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-astroid_3.1.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] = "ac248253bfa4bd924a0de213707e7ebeeb3138abeb48d798784ead1e56d419d4" + +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