diff mbox series

[meta-python,2/5] python3-filelock: Install docs/how-to.rst for ptests

Message ID 20261023020154.3881598-2-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,1/5] python3-anyio: Add missing runtime dependency on typing-extensions | expand

Commit Message

Khem Raj Oct. 23, 2026, 2:01 a.m. UTC
test_documented_cache_lock_name reads docs/how-to.rst relative to the
tests dir and fails with FileNotFoundError when it is not installed.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-python/recipes-devtools/python/python3-filelock_4.2.4.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-filelock_4.2.4.bb b/meta-python/recipes-devtools/python/python3-filelock_4.2.4.bb
index ad4efd998b..c0f4f59e17 100644
--- a/meta-python/recipes-devtools/python/python3-filelock_4.2.4.bb
+++ b/meta-python/recipes-devtools/python/python3-filelock_4.2.4.bb
@@ -40,4 +40,6 @@  RDEPENDS:${PN}-ptest += " \
 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
 }