[pull] main from astral-sh:main#56
Merged
Merged
Conversation
Multiple dist-info directories are confusing and can lead to correctness problems, as they pretend another package is present. They are not allowed in wheels, and we shouldn't support them. pip blocks multi dist-info directories, meaning this shouldn't cause significant breakage: https://github.com/pypa/pip/blob/72e6c5942802410b6e1cf4ed1953162b5fbea2ba/src/pip/_internal/utils/wheel.py#L52
## Summary
`exclude-dependencies` currently removes a dependency globally, which
makes it impossible to remove one package's dependency edge without also
removing direct requirements and requirements from other packages.
This allows structured entries alongside existing package-name strings:
```toml
exclude-dependencies = [
"setuptools",
{ package = { name = "bar", version = "0.0.5" }, dependencies = ["lightning"] },
]
```
This mirrors the support for scoped overrides we added in
`override-dependencies`.
`project::toolchain` currently uses three separate `Lock` APIs to select a preferred dependency-group package, fall back to a production dependency, and determine whether the exact package is already selected by the enabled groups. This spreads one query across the resolver and command code and can discover the same locked package more than once. This replaces those methods with `Lock::dependency_selection`, which resolves the production and dependency-group packages for a marker environment once. The returned `DependencySelection` supports direct production and group lookups and iteration over group selections. Any ambiguity encountered while materializing the selection fails the operation. This is a followup to #19884
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )