mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-01 16:10:25 +00:00
tests/ imports itself as "tests.*" and pulls in "capabilities" from the sibling tasks/ dir; upstream's pyproject.toml sets [tool.pytest] pythonpath = [".", "tasks"] to make both resolve, so ship tasks/ and pyproject.toml into the ptest install too. Also disable pytest's cache plugin: the non-root "tester" user ptest runs as can't write a cache dir under the read-only-to-them /usr/lib/python3-filelock/ptest install path. Add python3-pytest-timeout, used by the test suite. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <raj.khem@gmail.com>
43 lines
1.2 KiB
BlitzBasic
43 lines
1.2 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] = "2bde2e4cf732e0153406d8a7bc80620ecf5e621fe0d25e41143c4e3b4733ff30"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|
|
inherit pypi python_hatchling ptest-python-pytest
|
|
|
|
DEPENDS += "\
|
|
python3-hatch-vcs-native \
|
|
"
|
|
|
|
RDEPENDS:${PN} += " \
|
|
python3-core \
|
|
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}/
|
|
}
|