From f8a52dacc5f653a484afa6843598240b9dcec5fb Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Wed, 16 Mar 2022 16:36:16 +0800 Subject: python3-astroid: upgrade 2.10.0 -> 2.11.0 Changelog: ========= Add new (optional) doc_node attribute to nodes.Module, nodes.ClassDef, and nodes.FunctionDef. Accessing the doc attribute of nodes.Module, nodes.ClassDef, and nodes.FunctionDef has been deprecated in favour of the doc_node attribute. Note: doc_node is an (optional) nodes.Const whereas doc was an (optional) str. Passing the doc argument to the __init__ of nodes.Module, nodes.ClassDef, and nodes.FunctionDef has been deprecated in favour of the postinit doc_node attribute. Note: doc_node is an (optional) nodes.Const whereas doc was an (optional) str. Replace custom cachedproperty with functools.cached_property and deprecate it for Python 3.8+. Closes #1410 Set end_lineno and end_col_offset attributes to None for all nodes with PyPy 3.8. PyPy 3.8 assigns these attributes inconsistently which could lead to unexpected errors. Overwriting them with None will cause a fallback to the already supported way of PyPy 3.7. Add missing shape parameter to numpy zeros_like, ones_like, and full_like methods. Closes PyCQA/pylint#5871 Only pin wrapt on the major version. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj Signed-off-by: tgamblin --- .../python/python3-astroid_2.11.0.bb | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-astroid_2.11.0.bb (limited to 'meta-python/recipes-devtools/python/python3-astroid_2.11.0.bb') diff --git a/meta-python/recipes-devtools/python/python3-astroid_2.11.0.bb b/meta-python/recipes-devtools/python/python3-astroid_2.11.0.bb new file mode 100644 index 0000000000..1a69be2f98 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-astroid_2.11.0.bb @@ -0,0 +1,32 @@ +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] = "d56f6a5239981567ceaa3413d4971936c7b4b0c796fcff90c24254dcf8b05b62" + +inherit pypi setuptools3 + +DEPENDS += "${PYTHON_PN}-pytest-runner-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