Switchyard lets LLM applications route traffic across models and providers while preserving native OpenAI and Anthropic API compatibility - enabling flexible model selection, benchmarking, and cost/performance optimization.
Rust
fix(packaging): include prefill-router in the Python sdist (#706)
nachiketb-nvidia509d36948f02
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 45ee35deb..5a23e8c37 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -157,6 +157,13 @@ jobs:print(f"{archives[0]} contains {', '.join(sorted(expected_suffixes))}")PY+ - name: Smoke install source distribution+ working-directory: /tmp+ run: |+ sdist="$(find "${GITHUB_WORKSPACE}/dist" -maxdepth 1 -name '*.tar.gz' -print -quit)"+ uv run --isolated --no-project --python 3.10 \+ --with "${sdist}" \+ python -c "from switchyard_rust import _switchyard_rust; print('sdist install OK:', _switchyard_rust.__name__)"- uses: actions/upload-artifact@v4with:name: nemo-switchyard-sdistdiff --git a/pyproject.toml b/pyproject.tomlindex 952404e36..023291c1b 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -83,6 +83,11 @@ python-packages = ["switchyard", "switchyard_rust"]include = [{ path = "LICENSE", format = "sdist" },{ path = "NOTICE", format = "sdist" },+ { path = "rust-toolchain.toml", format = "sdist" },+ { path = "crates/prefill-router/Cargo.toml", format = "sdist" },+ { path = "crates/prefill-router/build.rs", format = "sdist" },+ { path = "crates/prefill-router/python/**/*", format = "sdist" },+ { path = "crates/prefill-router/src/**/*", format = "sdist" },][tool.pytest.ini_options]