mirror of
https://github.com/astral-sh/uv
synced 2026-06-21 13:47:25 +00:00
b4d32e4356
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>
35 lines
911 B
TOML
35 lines
911 B
TOML
name = "fork-marker-limited-inherit"
|
|
description = '''
|
|
This is like `fork-marker-inherit`, but it tests that dependency
|
|
filtering only occurs in the context of a fork.
|
|
|
|
For example, as in `fork-marker-inherit`, the `c` dependency of
|
|
`a<2` should be entirely excluded here since it is possible for
|
|
`sys_platform` to be simultaneously equivalent to Darwin and Linux.
|
|
However, the unconditional dependency on `b`, which in turn depends on
|
|
`c` for Linux only, should still incorporate `c` as the dependency is
|
|
not part of any fork.
|
|
'''
|
|
|
|
[resolver_options]
|
|
universal = true
|
|
|
|
[expected]
|
|
satisfiable = true
|
|
|
|
[root]
|
|
requires = [
|
|
"a>=2 ; sys_platform == 'linux'",
|
|
"a<2 ; sys_platform == 'darwin'",
|
|
"b",
|
|
]
|
|
|
|
[packages.a.versions."1.0.0"]
|
|
requires = ["c ; sys_platform == 'linux'"]
|
|
[packages.a.versions."2.0.0"]
|
|
|
|
[packages.b.versions."1.0.0"]
|
|
requires = ["c ; sys_platform == 'linux'"]
|
|
|
|
[packages.c.versions."1.0.0"]
|