Files
astral-sh-uv/test/scenarios/excluded/dependency-excludes-range-of-compatible-versions.toml
T
Zanie Blue b4d32e4356 Vendor packse scenarios and serve them from an in-memory index (#18084)
This makes it easier for us to add resolver scenarios by

1. Rewriting the scenario package generation in Rust
2. Serving scenario packages from memory in a wiremock index
3. Rewriting the scenario test case generation in Rust
4. Dropping all dependencies on packse / the packse index

---------

Co-authored-by: Codex <noreply@openai.com>
2026-06-02 09:25:29 -05:00

40 lines
1018 B
TOML

name = "dependency-excludes-range-of-compatible-versions"
description = "There is a range of compatible versions for the requested package `a`, but another dependency `c` excludes that range."
[root]
requires = ["a", "b>=2.0.0,<3.0.0", "c"]
[expected]
satisfiable = false
explanation = "Only the `2.x` versions of `a` are available since `a==1.0.0` and `a==3.0.0` require incompatible versions of `b`, but all available versions of `c` exclude that range of `a` so resolution fails."
[packages.a.versions."1.0.0"]
requires = ["b==1.0.0"]
[packages.a.versions."2.0.0"]
requires = ["b==2.0.0"]
[packages.a.versions."2.1.0"]
requires = ["b==2.0.0"]
[packages.a.versions."2.2.0"]
requires = ["b==2.0.0"]
[packages.a.versions."2.3.0"]
requires = ["b==2.0.0"]
[packages.a.versions."3.0.0"]
requires = ["b==3.0.0"]
[packages.b.versions."1.0.0"]
[packages.b.versions."2.0.0"]
[packages.b.versions."3.0.0"]
[packages.c.versions."1.0.0"]
requires = ["a<2.0.0"]
[packages.c.versions."2.0.0"]
requires = ["a>=3.0.0"]