mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 08:18:43 +01:00
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 <wangmy@fujitsu.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
44 lines
1.3 KiB
BlitzBasic
44 lines
1.3 KiB
BlitzBasic
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"
|