mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-26 10:17:01 +00:00
Upgrade to release 4.2.11: Bug fixes: - AsyncStrictSoftFileLock with a poll_interval below 0.05 seconds now spreads contended retries across a jittered, widening window like StrictSoftFileLock, instead of a fixed interval. - SoftReadWriteLock on runtimes without dir_fd other than Windows, such as GraalPy, now refuses a protocol directory another account owns under a sticky parent, as the other platforms already do. - A SoftFileLease garbage collected on its own heartbeat thread no longer deadlocks that thread, which left every later os.fork() in the process waiting forever. - A lock dropped during interpreter shutdown, including a ReadWriteLock or AsyncReadWriteLock, no longer prints an ignored exception at exit. - A lock still referenced when the interpreter exits is released from an atexit handler before module teardown, except holds of daemon threads that are still running, and a thread_local=False lock while any other thread runs. - On Windows, lock paths that differ only in drive letter or UNC share case, such as C:\work.lock and c:\work.lock, now share one FileLock or SoftReadWriteLock singleton and trigger FileLock's same-thread deadlock detection. - Releasing a soft lock whose marker a peer replaced no longer raises AttributeError on GraalPy, which lacks os.pwrite. - os.fork() no longer waits forever for a lock transition another thread never finishes; after 30 seconds the child exits with status 70 and the parent continues. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
52 lines
1.6 KiB
BlitzBasic
52 lines
1.6 KiB
BlitzBasic
# SPDX-License-Identifier: MIT
|
|
# Copyright (C) 2023 iris-GmbH infrared & intelligent sensors
|
|
SUMMARY = "A single module, which implements a platform independent file lock in Python, which provides a simple way of inter-process communication"
|
|
HOMEPAGE = "https://py-filelock.readthedocs.io/"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=2c6acbdf7bb74caa37512c3a5ca6857b"
|
|
|
|
CVE_PRODUCT = "tox-dev:filelock"
|
|
|
|
SRC_URI += "file://run-ptest"
|
|
|
|
SRC_URI[sha256sum] = "0cb84119fb8dce17898e1f69c974d5019daa59c4d7656be390a5fa59ccced912"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|
|
inherit pypi python_hatchling ptest-python-pytest
|
|
|
|
DEPENDS += "\
|
|
python3-hatch-fancy-pypi-readme-native \
|
|
python3-hatch-vcs-native \
|
|
"
|
|
|
|
# python-sbom (an SBOM metadata hatch hook) isn't packaged in OE
|
|
do_configure:prepend() {
|
|
sed -i -e '/python-sbom\[hatch\]/d' -e '/build.hooks.python-sbom/d' ${S}/pyproject.toml
|
|
}
|
|
|
|
RDEPENDS:${PN} += " \
|
|
python3-core \
|
|
python3-crypt \
|
|
python3-logging \
|
|
python3-asyncio \
|
|
"
|
|
|
|
RDEPENDS:${PN}-ptest += " \
|
|
python3-pytest-asyncio \
|
|
python3-pytest-mock \
|
|
python3-pytest-timeout \
|
|
python3-virtualenv \
|
|
python3-discovery \
|
|
"
|
|
|
|
# tests/ imports itself as "tests.*" and pulls in "capabilities" from the
|
|
# sibling tasks/ dir; pyproject.toml's [tool.pytest] pythonpath=[".", "tasks"]
|
|
# is what upstream relies on to make both resolve.
|
|
do_install_ptest:append() {
|
|
cp -rf ${S}/tasks ${D}${PTEST_PATH}/
|
|
cp -f ${S}/pyproject.toml ${D}${PTEST_PATH}/
|
|
# test_documented_cache_lock_name checks snippets in docs/how-to.rst
|
|
install -Dm 0644 ${S}/docs/how-to.rst ${D}${PTEST_PATH}/docs/how-to.rst
|
|
}
|