Skip to content

Commit

Permalink
Add multiple local versions to local version tests (#227)
Browse files Browse the repository at this point in the history
## Summary

This ensures that we get ordering right _between_ local versions.
  • Loading branch information
charliermarsh authored Nov 5, 2024
1 parent cb942f0 commit ac3705a
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 5 deletions.
2 changes: 2 additions & 0 deletions scenarios/local/local-greater-than-or-equal.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ explanation = "The version '1.2.3+foo' satisfies the constraint '>=1.2.3'."
[expected.packages]
a = "1.2.3+foo"

[packages.a.versions."1.2.3+bar"]

[packages.a.versions."1.2.3+foo"]
2 changes: 2 additions & 0 deletions scenarios/local/local-less-than-or-equal.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ explanation = "The version '1.2.3+foo' satisfies the constraint '<=1.2.3'."
[expected.packages]
a = "1.2.3+foo"

[packages.a.versions."1.2.3+bar"]

[packages.a.versions."1.2.3+foo"]
2 changes: 1 addition & 1 deletion scenarios/local/local-not-used-with-sdist.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ satisfiable = true
explanation = "The version '1.2.3' with an sdist satisfies the constraint '==1.2.3'."

[expected.packages]
a = "1.2.3"
a = "1.2.3+foo"

[packages.a.versions."1.2.3"]
wheel_tags = ["py3-any-macosx_10_0_ppc64"]
Expand Down
2 changes: 2 additions & 0 deletions scenarios/local/local-simple.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ explanation = "The version '1.2.3+foo' satisfies the constraint '==1.2.3'."
[expected.packages]
a = "1.2.3+foo"

[packages.a.versions."1.2.3+bar"]

[packages.a.versions."1.2.3+foo"]
4 changes: 2 additions & 2 deletions scenarios/local/local-transitive-backtrack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ requires = ["b==2.0.0"]
[packages.a.versions."2.0.0"]
requires = ["b==2.0.0+bar"]

[packages.b.versions."2.0.0+foo"]

[packages.b.versions."2.0.0+bar"]

[packages.b.versions."2.0.0+foo"]
4 changes: 2 additions & 2 deletions scenarios/local/local-transitive-conflicting.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ satisfiable = false
[packages.a.versions."1.0.0"]
requires = ["b==2.0.0+bar"]

[packages.b.versions."2.0.0+foo"]

[packages.b.versions."2.0.0+bar"]

[packages.b.versions."2.0.0+foo"]
2 changes: 2 additions & 0 deletions scenarios/local/local-transitive-confounding.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ requires = ["b==2.0.0"]
wheel_tags = ["py3-any-macosx_10_0_ppc64"]
sdist = false

[packages.b.versions."2.0.0+bar"]

[packages.b.versions."2.0.0+foo"]
2 changes: 2 additions & 0 deletions scenarios/local/local-transitive-greater-than-or-equal.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ b = "2.0.0+foo"
[packages.a.versions."1.0.0"]
requires = ["b>=2.0.0"]

[packages.b.versions."2.0.0+bar"]

[packages.b.versions."2.0.0+foo"]
2 changes: 2 additions & 0 deletions scenarios/local/local-transitive-greater-than.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ satisfiable = false
[packages.a.versions."1.0.0"]
requires = ["b>2.0.0"]

[packages.b.versions."2.0.0+bar"]

[packages.b.versions."2.0.0+foo"]
2 changes: 2 additions & 0 deletions scenarios/local/local-transitive-less-than-or-equal.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ b = "2.0.0+foo"
[packages.a.versions."1.0.0"]
requires = ["b<=2.0.0"]

[packages.b.versions."2.0.0+bar"]

[packages.b.versions."2.0.0+foo"]
2 changes: 2 additions & 0 deletions scenarios/local/local-transitive-less-than.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ satisfiable = false
[packages.a.versions."1.0.0"]
requires = ["b<2.0.0"]

[packages.b.versions."2.0.0+bar"]

[packages.b.versions."2.0.0+foo"]
2 changes: 2 additions & 0 deletions scenarios/local/local-transitive.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ b = "2.0.0+foo"
requires = ["b==2.0.0"]

[packages.b.versions."2.0.0+foo"]

[packages.b.versions."2.0.0+bar"]

0 comments on commit ac3705a

Please sign in to comment.