Skip to content

Commit

Permalink
Add fork-upgrade scenario (astral-sh#213)
Browse files Browse the repository at this point in the history
The scenario checks that we discard fork markers when using `--upgrade`.
Test case for #5817.
  • Loading branch information
konstin authored and zanieb committed Sep 3, 2024
1 parent e23f89e commit 0c42532
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions scenarios/fork/fork-upgrade.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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"]

0 comments on commit 0c42532

Please sign in to comment.