From 698890b9ba701f971c86a6bbdede432ad5f877b5 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 31 May 2021 20:13:48 +0300 Subject: python3-astroid: Upgrade 2.5.6 -> 2.5.7 Upgrade to release 2.5.7: - Fix six.with_metaclass transformation so it doesn't break user defined transformations - Fix detection of relative imports - Fix inference of instance attributes defined in base classes - Update `infer_named_tuple` brain to reject namedtuple definitions that would raise ValueError - Do not set instance attributes on builtin object() - Fix some spurious cycles detected in ``context.path`` leading to more cases that can now be inferred - Add ``kind`` field to ``Const`` nodes, matching the structure of the built-in ast Const. The kind field is "u" if the literal is a u-prefixed string, and ``None`` otherwise. - Fix property inference in class contexts for properties defined on the metaclass - Update enum brain to fix definition of __members__ for subclass-defined Enums - Update random brain to fix a crash with inference of some sequence elements - Fix inference of attributes defined in a base class that is an inner class - Allow inferring a return value of None for non-abstract empty functions and functions with no return statements (implicitly returning None) - scm_setuptools has been added to the packaging. - Astroid's tags are now the standard form ``vX.Y.Z`` and not ``astroid-X.Y.Z`` anymore. - Add initial support for Pattern Matching in Python 3.10 Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../python/python3-astroid_2.5.6.bb | 32 ---------------------- .../python/python3-astroid_2.5.7.bb | 32 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 32 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-astroid_2.5.6.bb create mode 100644 meta-python/recipes-devtools/python/python3-astroid_2.5.7.bb (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-astroid_2.5.6.bb b/meta-python/recipes-devtools/python/python3-astroid_2.5.6.bb deleted file mode 100644 index 62c54a46b9..0000000000 --- a/meta-python/recipes-devtools/python/python3-astroid_2.5.6.bb +++ /dev/null @@ -1,32 +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" -LIC_FILES_CHKSUM = "file://LICENSE;md5=a70cf540abf41acb644ac3b621b2fad1" - -SRC_URI[sha256sum] = "8a398dfce302c13f14bab13e2b14fe385d32b73f4e4853b9bdfb64598baa1975" - -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 \ -" diff --git a/meta-python/recipes-devtools/python/python3-astroid_2.5.7.bb b/meta-python/recipes-devtools/python/python3-astroid_2.5.7.bb new file mode 100644 index 0000000000..c805dc4dc9 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-astroid_2.5.7.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" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a70cf540abf41acb644ac3b621b2fad1" + +SRC_URI[sha256sum] = "d66a600e1602736a0f24f725a511b0e50d12eb18f54b31ec276d2c26a0a62c6a" + +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