diff mbox series

[meta-python,4/5] python3-fsspec: Fix runtime dependencies and install conftest for ptests

Message ID 20261023020154.3881598-4-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
fsspec imports ctypes, asyncio, json, logging and threading, which are
not in python3-core, without ctypes "import fsspec" fails, which also
broke the python3-pyyaml-include ptests.

Install the top-level fsspec/conftest.py into the ptest dir, it
provides the "m" fixture and the autouse instance cache cleaner, and
without it most tests error out or fail.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../python/python3-fsspec_2026.9.0.bb                 | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-fsspec_2026.9.0.bb b/meta-python/recipes-devtools/python/python3-fsspec_2026.9.0.bb
index 43d405f017..cacafc88d6 100644
--- a/meta-python/recipes-devtools/python/python3-fsspec_2026.9.0.bb
+++ b/meta-python/recipes-devtools/python/python3-fsspec_2026.9.0.bb
@@ -10,6 +10,14 @@  inherit python_hatchling ptest-python-pytest

 DEPENDS = "python3-hatch-vcs-native python3-hatchling-native"

+RDEPENDS:${PN} += "\
+    python3-asyncio \
+    python3-ctypes \
+    python3-json \
+    python3-logging \
+    python3-threading \
+"
+
 RDEPENDS:${PN}-ptest += "\
     python3-pytest \
     python3-pytest-mock \
@@ -28,6 +36,9 @@  do_install_ptest:append() {
     cp -rf ${S}/fsspec/tests/* ${D}${PTEST_PATH}/tests/
     cp -rf ${S}/fsspec/implementations/tests ${D}${PTEST_PATH}/implementations/
     touch ${D}${PTEST_PATH}/implementations/__init__.py
+    # Top-level conftest provides shared fixtures such as "m" and the
+    # autouse instance cache cleaner
+    install -m 0644 ${S}/fsspec/conftest.py ${D}${PTEST_PATH}/
     # Tests import helpers via fsspec.tests / fsspec.implementations.tests,
     # which aren't in the installed package
     grep -rlE 'fsspec\.(implementations\.)?tests' ${D}${PTEST_PATH} \