From bbaa6a032b96a368968e0640e9c5dc898674ff5c Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Thu, 9 Mar 2023 17:08:35 +0800 Subject: python3-astroid: upgrade 2.14.2 -> 2.15.0 0001-pyproject.toml-Replace-with.patch removed since it's included in 2.15.0 Changelog: ========== * astroid now supports "TryStar" nodes from python 3.11 and should be fully compatible with python 3.11. * "Formattedvalue.postinit" is now keyword only. This is to allow correct typing of the "Formattedvalue" class. * "Astroid" now supports custom import hooks. * "astroid" now infers return values from match cases. * "AstroidManager.clear_cache" now also clears the inference context cache. * "Astroid" now retrieves the default values of keyword only arguments and sets them on "Arguments.kw_defaults". * "Uninferable" now has the type "UninferableBase". This is to facilitate correctly type annotating code that uses this singleton. * Deprecate "modutils.is_standard_module()". It will be removed in the next minor release. Functionality has been replaced by two new functions, "modutils.is_stdlib_module()" and "modutils.module_in_path()". * Fix "are_exclusive" function when a walrus operator is used inside "IfExp.test" field. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../0001-pyproject.toml-Replace-with.patch | 27 --------------- .../python/python3-astroid_2.14.2.bb | 39 ---------------------- .../python/python3-astroid_2.15.0.bb | 35 +++++++++++++++++++ 3 files changed, 35 insertions(+), 66 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-astroid/0001-pyproject.toml-Replace-with.patch delete mode 100644 meta-python/recipes-devtools/python/python3-astroid_2.14.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-astroid_2.15.0.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-astroid/0001-pyproject.toml-Replace-with.patch b/meta-python/recipes-devtools/python/python3-astroid/0001-pyproject.toml-Replace-with.patch deleted file mode 100644 index 3e1a17be92..0000000000 --- a/meta-python/recipes-devtools/python/python3-astroid/0001-pyproject.toml-Replace-with.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 517f361ba4a6ae430acfe3b83986d32b4f811b58 Mon Sep 17 00:00:00 2001 -From: Leon Anavi -Date: Wed, 11 Jan 2023 13:56:24 +0200 -Subject: [PATCH] pyproject.toml: Replace ~= with >= - -Replace ~= with >= to avoid errors if the version is not exactly -the same. - -Signed-off-by: Leon Anavi ---- - pyproject.toml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 537bca9a..a01e0d45 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -1,5 +1,5 @@ - [build-system] --requires = ["setuptools~=62.6", "wheel~=0.37.1"] -+requires = ["setuptools>=62.6", "wheel>=0.37.1"] - build-backend = "setuptools.build_meta" - - [project] --- -2.30.2 - diff --git a/meta-python/recipes-devtools/python/python3-astroid_2.14.2.bb b/meta-python/recipes-devtools/python/python3-astroid_2.14.2.bb deleted file mode 100644 index e8b86071a3..0000000000 --- a/meta-python/recipes-devtools/python/python3-astroid_2.14.2.bb +++ /dev/null @@ -1,39 +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] = "a3cf9f02c53dd259144a7e8f3ccd75d67c9a8c716ef183e0c1f291bc5d7bb3cf" - -SRC_URI += " \ - file://0001-pyproject.toml-Replace-with.patch \ -" - -inherit pypi python_setuptools_build_meta - -DEPENDS += "\ - ${PYTHON_PN}-pytest-runner-native \ - ${PYTHON_PN}-wheel-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.15.0.bb b/meta-python/recipes-devtools/python/python3-astroid_2.15.0.bb new file mode 100644 index 0000000000..a5f30b754b --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-astroid_2.15.0.bb @@ -0,0 +1,35 @@ +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] = "525f126d5dc1b8b0b6ee398b33159105615d92dc4a17f2cd064125d57f6186fa" + +inherit pypi python_setuptools_build_meta + +DEPENDS += "\ + ${PYTHON_PN}-pytest-runner-native \ + ${PYTHON_PN}-wheel-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