feat(python): support macOS x64 runtime wheels

This commit is contained in:
fz
2026-09-03 11:16:34 +08:00
parent 427d210b5e
commit 7dcdcc2965
23 changed files with 181 additions and 63 deletions
+2 -3
View File
@@ -79,12 +79,11 @@ def test_current_platform_supports_windows_x64_only(monkeypatch: pytest.MonkeyPa
runtime._current_platform_tag()
def test_current_platform_rejects_macos_x64(monkeypatch: pytest.MonkeyPatch) -> None:
def test_current_platform_supports_macos_x64(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setattr(runtime.sys, "platform", "darwin")
monkeypatch.setattr(runtime.platform, "machine", lambda: "x86_64")
with pytest.raises(FileNotFoundError, match="macOS arm64"):
runtime._current_platform_tag()
assert runtime._current_platform_tag() == "macos-x64"
def test_runtime_requires_ripgrep_sidecar(