meta-openembedded/meta-python/recipes-devtools/python/python3-astroid_3.1.0.bb
Wang Mingyu 59ccd2e91a
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 <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-08 10:07:21 -08:00

38 lines
923 B
BlitzBasic

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"