Skip to content

Commit

Permalink
scenarios: add Python environment to Requires-Python tests
Browse files Browse the repository at this point in the history
Without this, the tests generated in `uv` seem to default to using
`3.8`, which in turn doesn't work with a `Requires-Python` of 3.10.

We could change the version numbers here to work with the `3.8` default,
but it seems better to fully specify which Python is being used.
  • Loading branch information
BurntSushi committed Jun 12, 2024
1 parent 421bba0 commit 21e7d6b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scenarios/fork/requires-python-full-prerelease.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ universal = true
[expected]
satisfiable = false

[environment]
python = "3.12"

[root]
requires_python = ">=3.10"
requires = [
Expand Down
3 changes: 3 additions & 0 deletions scenarios/fork/requires-python-full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ universal = true
[expected]
satisfiable = false

[environment]
python = "3.12"

[root]
requires_python = ">=3.10"
requires = [
Expand Down
3 changes: 3 additions & 0 deletions scenarios/fork/requires-python.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ universal = true
[expected]
satisfiable = false

[environment]
python = "3.12"

[root]
requires_python = ">=3.10"
requires = [
Expand Down

0 comments on commit 21e7d6b

Please sign in to comment.