Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow source distributions to produce wheels with +local suffixes (#1…
…1429) ## Summary We currently enforce that if you do `uv pip install ./dist/iniconfig-1.0.0.tar.gz`, the build _must_ produce a wheel like `iniconfig-1.0.0-py3-none-any.whl` (i.e., the name and version must match). It turns out some packages produce a wheel that has a local suffix on it, like `vllm`. This PR makes the check a little more permissive in that we now accept `1.0.0` or that version with a local suffix (e.g., `1.0.0+cpu`). I don't love this practice, but we already relaxed this check when _installing_ a wheel, so this seems reasonable: https://github.com/astral-sh/uv/blob/5e15881dccc9201c10696cfcaf3a3e1ad8081f31/crates/uv-install-wheel/src/install.rs#L50-L52 Note that this is _still_ stricter than pip. pip seems to only require that the package name is the same (i.e., `iniconfig` matches `iniconfig`; but they'll happily install a wheel like `iniconfig-2.0.0-py3-none-any.whl` given `./dist/iniconfig-1.0.0.tar.gz`). Closes #11038.
- Loading branch information