From ae8b0eaf93d94aecf5d6ce8d24f46dff1bd416a9 Mon Sep 17 00:00:00 2001 From: "zhoujiahui.01" Date: Fri, 17 Apr 2026 14:15:17 +0800 Subject: [PATCH] fix(docker): remove invalid ragfs python-source config --- crates/ragfs-python/pyproject.toml | 1 - tests/misc/test_root_docker_image_packaging.py | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/crates/ragfs-python/pyproject.toml b/crates/ragfs-python/pyproject.toml index eb3445e29..b2b51358a 100644 --- a/crates/ragfs-python/pyproject.toml +++ b/crates/ragfs-python/pyproject.toml @@ -10,4 +10,3 @@ requires-python = ">=3.10" [tool.maturin] features = ["s3"] abi3 = true -python-source = "3.10" diff --git a/tests/misc/test_root_docker_image_packaging.py b/tests/misc/test_root_docker_image_packaging.py index b146474b7..f92b5bb02 100644 --- a/tests/misc/test_root_docker_image_packaging.py +++ b/tests/misc/test_root_docker_image_packaging.py @@ -59,6 +59,17 @@ def test_ragfs_python_uses_pyo3_version_with_python_314_support(): assert 'pyo3 = { version = "0.27"' in cargo_toml +def test_ragfs_python_python_source_points_to_existing_package_dir(): + pyproject = _read_text("crates/ragfs-python/pyproject.toml") + + match = re.search(r'^python-source = "(?P[^"]+)"$', pyproject, re.MULTILINE) + if match is None: + return + + package_dir = REPO_ROOT / "crates/ragfs-python" / match.group("path") + assert package_dir.is_dir(), f"Configured python-source directory is missing: {package_dir}" + + def test_root_build_system_includes_maturin_for_isolated_builds(): pyproject = _read_text("pyproject.toml") setup_py = _read_text("setup.py")