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>
32 lines
895 B
TOML
32 lines
895 B
TOML
name = "fork-marker-inherit-combined-allowed"
|
|
description = '''
|
|
This test builds on `fork-marker-inherit-combined`. Namely, we add
|
|
`or implementation_name == 'pypy'` to the dependency on `c`. While
|
|
`sys_platform == 'linux'` cannot be true because of the first fork,
|
|
the second fork which includes `b==1.0.0` happens precisely when
|
|
`implementation_name == 'pypy'`. So in this case, `c` should be
|
|
included.
|
|
'''
|
|
|
|
[resolver_options]
|
|
universal = true
|
|
|
|
[expected]
|
|
satisfiable = true
|
|
|
|
[root]
|
|
requires = ["a>=2 ; sys_platform == 'linux'", "a<2 ; sys_platform == 'darwin'"]
|
|
|
|
[packages.a.versions."1.0.0"]
|
|
requires = [
|
|
"b>=2 ; implementation_name == 'cpython'",
|
|
"b<2 ; implementation_name == 'pypy'",
|
|
]
|
|
[packages.a.versions."2.0.0"]
|
|
|
|
[packages.b.versions."1.0.0"]
|
|
requires = ["c ; sys_platform == 'linux' or implementation_name == 'pypy'"]
|
|
[packages.b.versions."2.0.0"]
|
|
|
|
[packages.c.versions."1.0.0"]
|