From 51897427a30ad588e8f85c64e372cfc4aaa8820b Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Mon, 16 Jun 2025 17:16:32 +0800 Subject: python3-cython: upgrade 3.1.1 -> 3.1.2 Bugs fixed ---------- * Attribute lookups failed on the "bool" builtin type. * Type checks on or-ed union types could incorrectly return false. * Negative list indexing could accidentally wrap around twice in PyPy and the Limited API. * Iterating over literal sequences with starred (unpacked) items could infer a wrong type for the loop variable and fail to assign the values. * Calls to C functions taking exception types failed to check for a 'None' argument. * Fused functions had an incorrect "__module__" attribute. * The type of Cython implemented functions had an incorrect "__module__" attribute. * Errors while indexing into "bytearray" or "str" in "nogil" sections could crash. * "bytearray.append()" could silently accept some invalid character numbers. * The C++11 "" header was included regardless of the C++ version. * "PyDict_GetItemStringRef()" was accidentally used in older Limited API versions. * "abort()" was used but not always available in the Limited API. * Some dependencies were missing from the "depfile". * Embedded function signatures were not always separated from the existing docstring. * "numpy.math" was missing from "Cython/Includes/" and could not be cimported. * Some tests were adapted for NumPy 2.x. * Some C compiler warnings were fixed. * "Cython.Build" was not officially exposing the "cythonize" function. (From OE-Core rev: ad9e2ba3d7c1af3f7084427eb9ddb0822460b108) Signed-off-by: Wang Mingyu Signed-off-by: Richard Purdie --- .../python/python3-cython_3.1.1.bb | 44 ---------------------- .../python/python3-cython_3.1.2.bb | 44 ++++++++++++++++++++++ 2 files changed, 44 insertions(+), 44 deletions(-) delete mode 100644 meta/recipes-devtools/python/python3-cython_3.1.1.bb create mode 100644 meta/recipes-devtools/python/python3-cython_3.1.2.bb (limited to 'meta/recipes-devtools/python') diff --git a/meta/recipes-devtools/python/python3-cython_3.1.1.bb b/meta/recipes-devtools/python/python3-cython_3.1.1.bb deleted file mode 100644 index 1bc6eda4ac..0000000000 --- a/meta/recipes-devtools/python/python3-cython_3.1.1.bb +++ /dev/null @@ -1,44 +0,0 @@ -SUMMARY = "The Cython language" -HOMEPAGE = "https://pypi.org/project/Cython/" -DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \ -It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \ -and the messy, low-level world of C." -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c" - -SRC_URI[sha256sum] = "505ccd413669d5132a53834d792c707974248088c4f60c497deb1b416e366397" - -inherit pypi setuptools3 cython - -# No need to depend on self -DEPENDS:remove = "python3-cython-native" - -do_install:append() { - # rename scripts that would conflict with the Python 2 build of Cython - mv ${D}${bindir}/cython ${D}${bindir}/cython3 - mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3 - mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3 -} - -RDEPENDS:${PN}:class-target += "\ - python3-misc \ - python3-netserver \ - python3-pkgutil \ - python3-pyparsing \ - python3-setuptools \ - python3-shell \ - python3-xml \ -" - -RDEPENDS:${PN}:class-nativesdk += "\ - nativesdk-python3-misc \ - nativesdk-python3-netserver \ - nativesdk-python3-pkgutil \ - nativesdk-python3-pyparsing \ - nativesdk-python3-setuptools \ - nativesdk-python3-shell \ - nativesdk-python3-xml \ -" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-devtools/python/python3-cython_3.1.2.bb b/meta/recipes-devtools/python/python3-cython_3.1.2.bb new file mode 100644 index 0000000000..77dbbe8b2c --- /dev/null +++ b/meta/recipes-devtools/python/python3-cython_3.1.2.bb @@ -0,0 +1,44 @@ +SUMMARY = "The Cython language" +HOMEPAGE = "https://pypi.org/project/Cython/" +DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \ +It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \ +and the messy, low-level world of C." +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c" + +SRC_URI[sha256sum] = "6bbf7a953fa6762dfecdec015e3b054ba51c0121a45ad851fa130f63f5331381" + +inherit pypi setuptools3 cython + +# No need to depend on self +DEPENDS:remove = "python3-cython-native" + +do_install:append() { + # rename scripts that would conflict with the Python 2 build of Cython + mv ${D}${bindir}/cython ${D}${bindir}/cython3 + mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3 + mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3 +} + +RDEPENDS:${PN}:class-target += "\ + python3-misc \ + python3-netserver \ + python3-pkgutil \ + python3-pyparsing \ + python3-setuptools \ + python3-shell \ + python3-xml \ +" + +RDEPENDS:${PN}:class-nativesdk += "\ + nativesdk-python3-misc \ + nativesdk-python3-netserver \ + nativesdk-python3-pkgutil \ + nativesdk-python3-pyparsing \ + nativesdk-python3-setuptools \ + nativesdk-python3-shell \ + nativesdk-python3-xml \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf