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>
29 lines
486 B
TOML
29 lines
486 B
TOML
name = "fork-upgrade"
|
|
description = '''
|
|
This test checks that we discard fork markers when using `--upgrade`.
|
|
'''
|
|
|
|
[resolver_options]
|
|
universal = true
|
|
|
|
[expected]
|
|
satisfiable = true
|
|
|
|
[root]
|
|
requires = ["foo"]
|
|
|
|
[packages.foo.versions."1.0.0"]
|
|
requires = [
|
|
# Provoke a fork
|
|
"bar==1; sys_platform == 'linux'",
|
|
"bar==2; sys_platform != 'linux'",
|
|
]
|
|
[packages.foo.versions."2.0.0"]
|
|
requires = [
|
|
# No fork
|
|
"bar==2",
|
|
]
|
|
|
|
[packages.bar.versions."1.0.0"]
|
|
[packages.bar.versions."2.0.0"]
|