Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion crates/ragfs-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ requires-python = ">=3.10"
[tool.maturin]
features = ["s3"]
abi3 = true
python-source = "3.10"
11 changes: 11 additions & 0 deletions tests/misc/test_root_docker_image_packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<path>[^"]+)"$', 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")
Expand Down
Loading