From d5abe55b036c6891b09031d7b397b1b2203c1af8 Mon Sep 17 00:00:00 2001 From: konsti Date: Wed, 1 Nov 2023 19:51:14 +0100 Subject: [PATCH] Include rust-toolchain in source distribution (#8414) **Summary** Simplify CI by ensuring that the source distribution is always built with the rust version that has been explicitly tested. See discussion in #8389 Closes #8389 --------- Co-authored-by: Zanie Co-authored-by: Stijn de Gooijer --- .github/workflows/release.yaml | 1 - pyproject.toml | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c8b8a5594a..838590053d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -48,7 +48,6 @@ jobs: args: --out dist - name: "Test sdist" run: | - rustup default $(cat rust-toolchain) pip install dist/${{ env.PACKAGE_NAME }}-*.tar.gz --force-reinstall ruff --help python -m ruff --help diff --git a/pyproject.toml b/pyproject.toml index 2e95c169e3..e1a9069c3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,9 @@ exclude = [ "crates/ruff_linter/resources/test/fixtures/**/*", "crates/ruff_linter/src/rules/*/snapshots/**/*" ] +include = [ + "rust-toolchain.toml" +] [tool.ruff] extend-exclude = [