From 3bf6d48f9a0b60c7e1e36ef6188eb13603c4c8bc Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 12 Nov 2024 17:24:30 +0800 Subject: python3-packaging: upgrade 24.1 -> 24.2 Changelog: ========== - The source is auto-formatted with ruff, not black - Bump the github-actions group across 1 directory with 3 updates - Apply ruff rules (RUF) - Fix typo in Version __str__ - Bump the github-actions group with 3 updates - Get rid of duplicate test cases - Fix doc for canonicalize_version and a typo in a docstring - docs: public/base_version comparison - Apply ruff/bugbear rules (B) - Apply ruff/pyupgrade rules (UP) - Add a changelog entry for dropping Python 3.7 support - Patch python_full_version unconditionally - Refactor canonicalize_version - Allow creating a SpecifierSet from a list of specifiers - Fix uninformative error message - Fix prerelease detection for > and < - Bump the github-actions group across 1 directory with 4 updates - Add support for PEP 730 iOS tags. - Update the changelog to reflect 24.1 changes - Mention updating changelog in release process - Add a comment as to why Metadata.name isn't normalized - Use !r formatter for error messages with filenames. - PEP 639: Implement License-Expression and License-File - Bump the github-actions group with 4 updates - Upgrade to latest mypy - Extraneous quotes (From OE-Core rev: 7e134bd24e7b621a0fbf4ef8143334fb039445e3) Signed-off-by: Wang Mingyu Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- .../python/python3-packaging_24.1.bb | 43 ---------------------- .../python/python3-packaging_24.2.bb | 43 ++++++++++++++++++++++ 2 files changed, 43 insertions(+), 43 deletions(-) delete mode 100644 meta/recipes-devtools/python/python3-packaging_24.1.bb create mode 100644 meta/recipes-devtools/python/python3-packaging_24.2.bb (limited to 'meta/recipes-devtools') diff --git a/meta/recipes-devtools/python/python3-packaging_24.1.bb b/meta/recipes-devtools/python/python3-packaging_24.1.bb deleted file mode 100644 index 0aac283389..0000000000 --- a/meta/recipes-devtools/python/python3-packaging_24.1.bb +++ /dev/null @@ -1,43 +0,0 @@ -SUMMARY = "Core utilities for Python packages" -HOMEPAGE = "https://github.com/pypa/packaging" -LICENSE = "Apache-2.0 | BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91" - -SRC_URI[sha256sum] = "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002" - -SRC_URI += "file://run-ptest.in" - -inherit pypi python_flit_core ptest - -BBCLASSEXTEND = "native nativesdk" - -# Bootstrap the native build -DEPENDS:remove:class-native = "python3-build-native" -RDEPENDS:${PN} += "python3-profile" - -# https://github.com/pypa/packaging/issues/850 -SKIPLIST ?= "" -SKIPLIST:libc-musl = "--deselect tests/test_manylinux.py::test_is_manylinux_compatible_old --ignore=tests/test_tags.py" - -do_compile:class-native () { - python_flit_core_do_manual_build -} - -do_install_ptest() { - cp -r ${S}/tests ${D}${PTEST_PATH}/ - # We don't need this script which is used to build the binaries - rm -f ${D}${PTEST_PATH}/tests/manylinux/build.sh - sed -e 's|IGNOREDTESTS|${SKIPLIST}|' ${UNPACKDIR}/run-ptest.in > ${D}${PTEST_PATH}/run-ptest - chmod 0755 ${D}${PTEST_PATH}/run-ptest -} - -RDEPENDS:${PN}-ptest = "\ - python3-ctypes \ - python3-pretend \ - python3-pytest \ - python3-unittest-automake-output \ -" - -# The ptest package contains prebuilt test binaries -INSANE_SKIP:${PN} = "already-stripped" -INSANE_SKIP:${PN}-ptest = "arch" diff --git a/meta/recipes-devtools/python/python3-packaging_24.2.bb b/meta/recipes-devtools/python/python3-packaging_24.2.bb new file mode 100644 index 0000000000..3526cd5b39 --- /dev/null +++ b/meta/recipes-devtools/python/python3-packaging_24.2.bb @@ -0,0 +1,43 @@ +SUMMARY = "Core utilities for Python packages" +HOMEPAGE = "https://github.com/pypa/packaging" +LICENSE = "Apache-2.0 | BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91" + +SRC_URI[sha256sum] = "c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f" + +SRC_URI += "file://run-ptest.in" + +inherit pypi python_flit_core ptest + +BBCLASSEXTEND = "native nativesdk" + +# Bootstrap the native build +DEPENDS:remove:class-native = "python3-build-native" +RDEPENDS:${PN} += "python3-profile" + +# https://github.com/pypa/packaging/issues/850 +SKIPLIST ?= "" +SKIPLIST:libc-musl = "--deselect tests/test_manylinux.py::test_is_manylinux_compatible_old --ignore=tests/test_tags.py" + +do_compile:class-native () { + python_flit_core_do_manual_build +} + +do_install_ptest() { + cp -r ${S}/tests ${D}${PTEST_PATH}/ + # We don't need this script which is used to build the binaries + rm -f ${D}${PTEST_PATH}/tests/manylinux/build.sh + sed -e 's|IGNOREDTESTS|${SKIPLIST}|' ${UNPACKDIR}/run-ptest.in > ${D}${PTEST_PATH}/run-ptest + chmod 0755 ${D}${PTEST_PATH}/run-ptest +} + +RDEPENDS:${PN}-ptest = "\ + python3-ctypes \ + python3-pretend \ + python3-pytest \ + python3-unittest-automake-output \ +" + +# The ptest package contains prebuilt test binaries +INSANE_SKIP:${PN} = "already-stripped" +INSANE_SKIP:${PN}-ptest = "arch" -- cgit v1.2.3-54-g00ecf