mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-18 03:13:48 +00:00
## Summary When determining "direct" dependencies, we need to ensure that we respect markers. In the linked issue, the user had an optional dependency like: ```toml [project.optional-dependencies] dev = [ "setuptools>=64", "setuptools_scm>=8" ] ``` By not respecting markers, we tried to resolve `setuptools` to the lowest-available version. However, since `setuptools>=64` _isn't_ enabled (since it's optional), we won't respect _that_ constraint. To be consistent, we need to omit optional dependencies just as we will at resolution time. Closes https://github.com/astral-sh/uv/issues/2203. ## Test Plan `cargo test` |
||
|---|---|---|
| .. | ||
| pubgrub | ||
| resolver | ||
| candidate_selector.rs | ||
| constraints.rs | ||
| dependency_mode.rs | ||
| editables.rs | ||
| error.rs | ||
| finder.rs | ||
| lib.rs | ||
| manifest.rs | ||
| options.rs | ||
| overrides.rs | ||
| pins.rs | ||
| prerelease_mode.rs | ||
| python_requirement.rs | ||
| redirect.rs | ||
| resolution.rs | ||
| resolution_mode.rs | ||
| version_map.rs | ||
| yanks.rs | ||