Skip to content

Commit

Permalink
fix: add missing environment and resolver_options (#226)
Browse files Browse the repository at this point in the history
#211 (comment)

Adds missing `resolver_options` and `environment` lost from json to toml
conversion
  • Loading branch information
samypr100 authored Nov 4, 2024
1 parent e220329 commit cb942f0
Show file tree
Hide file tree
Showing 24 changed files with 100 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scenarios/prereleases/package-prereleases-boundary.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ a = "0.1.0"
[packages.a.versions."0.2.0a1"]

[packages.a.versions."0.3.0"]

[resolver_options]
prereleases = true
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ a = "0.1.0"
[packages.a.versions."0.2.0a1"]

[packages.a.versions."0.3.0"]

[resolver_options]
prereleases = true
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ a = "1.0.0a1"
[packages.a.versions."0.1.0"]

[packages.a.versions."1.0.0a1"]

[resolver_options]
prereleases = true
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ satisfiable = false

[packages.a.versions."1.0.0"]
requires_python = ">=3.10"

[resolver_options]
python = "3.9"

[environment]
python = "3.11"
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ a = "1.0.0"
[packages.a.versions."1.0.0"]
requires_python = ">=3.10"
wheel = false

[resolver_options]
python = "3.11"

[environment]
python = "3.9"
additional_python = ["3.11"]
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ explanation = "Since there are no compatible wheels for the package and it is no
[packages.a.versions."1.0.0"]
requires_python = ">=3.10"
wheel_tags = ["foo-none-any"]

[resolver_options]
python = "3.11"

[environment]
python = "3.9"
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ wheel = false

[packages.a.versions."2.0.0"]
requires_python = ">=3.12"

[resolver_options]
python = "3.11"

[environment]
python = "3.9"
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ explanation = "Since there are no wheels for the package and it is not compatibl
[packages.a.versions."1.0.0"]
requires_python = ">=3.10"
wheel = false

[resolver_options]
python = "3.11"

[environment]
python = "3.9"
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ a = "1.0.0"

[packages.a.versions."1.0.0"]
requires_python = ">=3.10"

[resolver_options]
python = "3.11"

[environment]
python = "3.9"
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ requires_python = ">=3.11"

[packages.a.versions."4.0.0"]
requires_python = ">=3.12"

[environment]
python = "3.9"
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ requires_python = ">=3.11"

[packages.a.versions."4.0.0"]
requires_python = ">=3.12"

[environment]
python = "3.9"
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ requires_python = ">=3.11"

[packages.a.versions."3.5.0"]
requires_python = ">=3.11"

[environment]
python = "3.9"
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ satisfiable = false

[packages.a.versions."1.0.0"]
requires_python = ">=3.8.14"

[environment]
python = "3.8.12"
3 changes: 3 additions & 0 deletions scenarios/requires_python/python-greater-than-current.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ satisfiable = false

[packages.a.versions."1.0.0"]
requires_python = ">=3.10"

[environment]
python = "3.9"
3 changes: 3 additions & 0 deletions scenarios/requires_python/python-less-than-current.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ explanation = "We ignore the upper bound on Python requirements"

[packages.a.versions."1.0.0"]
requires_python = "<=3.8"

[environment]
python = "3.9"
6 changes: 6 additions & 0 deletions scenarios/requires_python/python-patch-override-no-patch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ explanation = "Since the resolver is asked to solve with 3.8, the minimum compat

[packages.a.versions."1.0.0"]
requires_python = ">=3.8.4"

[resolver_options]
python = "3.8"

[environment]
python = "3.8.18"
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ a = "1.0.0"

[packages.a.versions."1.0.0"]
requires_python = ">=3.8.0"

[resolver_options]
python = "3.8.0"

[environment]
python = "3.8.18"
6 changes: 6 additions & 0 deletions scenarios/tag_and_markers/requires-python-wheels.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ satisfiable = true

[packages.a.versions."1.0.0"]
wheel_tags = ["cp311-cp311-any", "cp310-cp310-any", "cp39-cp39-any"]

[resolver_options]
universal = true

[environment]
python = "3.12"
3 changes: 3 additions & 0 deletions scenarios/tag_and_markers/unreachable-package.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ satisfiable = true
requires = ["b==1.0.0; sys_platform == 'linux'"]

[packages.b.versions."1.0.0"]

[resolver_options]
universal = true
3 changes: 3 additions & 0 deletions scenarios/tag_and_markers/unreachable-wheels.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ wheel_tags = [
"cp312-cp312-win_amd64",
"cp312-cp312-macosx_14_0_x86_64",
]

[resolver_options]
universal = true
3 changes: 3 additions & 0 deletions scenarios/wheels/no-binary.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ satisfiable = true
explanation = "The source distribution should be used for install"

[packages.a.versions."1.0.0"]

[resolver_options]
no_binary = ["a"]
3 changes: 3 additions & 0 deletions scenarios/wheels/no-build.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ satisfiable = true
explanation = "The wheel should be used for install"

[packages.a.versions."1.0.0"]

[resolver_options]
no_build = ["a"]
3 changes: 3 additions & 0 deletions scenarios/wheels/no-wheels-no-build.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ satisfiable = false

[packages.a.versions."1.0.0"]
wheel = false

[resolver_options]
no_build = ["a"]
3 changes: 3 additions & 0 deletions scenarios/wheels/only-wheels-no-binary.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ satisfiable = false

[packages.a.versions."1.0.0"]
sdist = false

[resolver_options]
no_binary = ["a"]

0 comments on commit cb942f0

Please sign in to comment.