Skip to content

Remove rust-toolchain.toml from sdist #17925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025

Conversation

MichaReiser
Copy link
Member

@MichaReiser MichaReiser commented May 7, 2025

Summary

The rust-toolchain.toml specifies the rust toolchain version that we use for development.
Consumers of the ruff package can use any Rust version (that meets our MSRV) to build ruff from an sdist.

Closes #17909

Test Plan

Ran uv build and verified that the rust-toolchain.toml is no longer present in the sdist folder.

I uninstalled all Rust toolchains and verified that cargo build re-installs the latest stable version.

I verified that cargo build automatically installs the latest stable if the default Rust toolchain doesn't meet the MSRV.

@MichaReiser MichaReiser added the release Related to the release process label May 7, 2025
@MichaReiser
Copy link
Member Author

@ntBre I don't think this should require any changes on the conda forge side but what changes were needed last time we bumped the MSRV/rust-toolchain?

@MichaReiser MichaReiser marked this pull request as ready for review May 7, 2025 17:06
@ntBre
Copy link
Contributor

ntBre commented May 7, 2025

I just had to bump the rust_compiler_version in the main recipe and also in one of the Windows recipes. And I guess bump the build number, but I think that's for any change.

My last PR: conda-forge/ruff-feedstock#266
Zanie's PR I based it on: conda-forge/ruff-feedstock#252

@MichaReiser
Copy link
Member Author

Thanks.

@MichaReiser MichaReiser added this to the v0.12 milestone May 17, 2025
@ntBre
Copy link
Contributor

ntBre commented Jun 10, 2025

Do we want to try to merge this into the 0.12 branch?

@MichaReiser MichaReiser changed the base branch from main to brent/release-0.12.0 June 11, 2025 06:34
@MichaReiser MichaReiser force-pushed the micha/rust-toolchain-sdist branch from 7f225c9 to e7837ae Compare June 11, 2025 06:35
@MichaReiser MichaReiser merged commit e02b170 into brent/release-0.12.0 Jun 11, 2025
52 checks passed
@MichaReiser MichaReiser deleted the micha/rust-toolchain-sdist branch June 11, 2025 06:50
@MichaReiser MichaReiser added the breaking Breaking API change label Jun 11, 2025
@MichaReiser MichaReiser mentioned this pull request Jun 11, 2025
2 tasks
ntBre pushed a commit that referenced this pull request Jun 11, 2025
ntBre pushed a commit that referenced this pull request Jun 11, 2025
ntBre pushed a commit that referenced this pull request Jun 12, 2025
ntBre pushed a commit that referenced this pull request Jun 16, 2025
ntBre pushed a commit that referenced this pull request Jun 17, 2025
ntBre pushed a commit that referenced this pull request Jun 17, 2025
carljm added a commit to MatthewMckee4/ruff that referenced this pull request Jun 17, 2025
…ence

* main: (71 commits)
  Bump 0.12.0 (astral-sh#18724)
  Revert "[ty] Offer "Did you mean...?" suggestions for unresolved `from` imports and unresolved attributes (astral-sh#18705)" (astral-sh#18721)
  [`flake8-return`] Stabilize only add `return None` at the end when fixing `implicit-return` (`RET503`) (astral-sh#18516)
  [`pyupgrade`] Stabilize `non-pep695-generic-function` (`UP047`) (astral-sh#18524)
  [`pyupgrade`] Stabilize `non-pep695-generic-class` (`UP046`) (astral-sh#18519)
  [`pandas-vet`] Deprecate `pandas-df-variable-name` (`PD901`) (astral-sh#18618)
  [`flake8-bandit`] Remove `suspicious-xmle-tree-usage` (`S320`) (astral-sh#18617)
  Stabilize `dataclass-enum` (`RUF049`) (astral-sh#18570)
  Stabilize `unnecessary-dict-index-lookup` (`PLR1733`) (astral-sh#18571)
  Remove rust-toolchain.toml from sdist (astral-sh#17925)
  Stabilize `starmap-zip` (`RUF058`) (astral-sh#18525)
  [`flake8-logging`] Stabilize `exc-info-outside-except-handler` (`LOG014`) (astral-sh#18517)
  [`pyupgrade`] Stabilize `non-pep604-annotation-optional` (`UP045`) and preview behavior for `non-pep604-annotation-union` (`UP007`) (astral-sh#18505)
  Stabilize `pytest-warns-too-broad` (`PT030`) (astral-sh#18568)
  Stabilize `for-loop-writes` (`FURB122`) (astral-sh#18565)
  Stabilize `pytest-warns-with-multiple-statements` (`PT031`) (astral-sh#18569)
  Stabilize `pytest-parameter-with-default-argument` (`PT028`) (astral-sh#18566)
  Stabilize `nan-comparison` (`PLW0177`) (astral-sh#18559)
  Stabilize `check-and-remove-from-set` (`FURB132`) (astral-sh#18560)
  Stabilize `unnecessary-round` (`RUF057`) (astral-sh#18563)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking API change release Related to the release process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exclude rust-toolchain.toml from sdist
2 participants