Skip to content

[pull] main from astral-sh:main#56

Merged
pull[bot] merged 3 commits into
Moshbbab:mainfrom
astral-sh:main
Jun 26, 2026
Merged

[pull] main from astral-sh:main#56
pull[bot] merged 3 commits into
Moshbbab:mainfrom
astral-sh:main

Conversation

@pull

@pull pull Bot commented Jun 26, 2026

Copy link
Copy Markdown

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 : )

konstin and others added 3 commits June 26, 2026 11:47
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
@pull pull Bot locked and limited conversation to collaborators Jun 26, 2026
@pull pull Bot added the ⤵️ pull label Jun 26, 2026
@pull pull Bot merged commit 92df2c6 into Moshbbab:main Jun 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants