From 21e7d6b4f915362dca71f77659bf5826ebd6ff67 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Wed, 12 Jun 2024 10:38:05 -0400 Subject: [PATCH] scenarios: add Python environment to Requires-Python tests 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. --- scenarios/fork/requires-python-full-prerelease.toml | 3 +++ scenarios/fork/requires-python-full.toml | 3 +++ scenarios/fork/requires-python.toml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/scenarios/fork/requires-python-full-prerelease.toml b/scenarios/fork/requires-python-full-prerelease.toml index 2cf49af0..0a7c267d 100644 --- a/scenarios/fork/requires-python-full-prerelease.toml +++ b/scenarios/fork/requires-python-full-prerelease.toml @@ -13,6 +13,9 @@ universal = true [expected] satisfiable = false +[environment] +python = "3.12" + [root] requires_python = ">=3.10" requires = [ diff --git a/scenarios/fork/requires-python-full.toml b/scenarios/fork/requires-python-full.toml index 1b104a6d..43aefd7d 100644 --- a/scenarios/fork/requires-python-full.toml +++ b/scenarios/fork/requires-python-full.toml @@ -13,6 +13,9 @@ universal = true [expected] satisfiable = false +[environment] +python = "3.12" + [root] requires_python = ">=3.10" requires = [ diff --git a/scenarios/fork/requires-python.toml b/scenarios/fork/requires-python.toml index 6ed03e9a..b0ad4dcc 100644 --- a/scenarios/fork/requires-python.toml +++ b/scenarios/fork/requires-python.toml @@ -10,6 +10,9 @@ universal = true [expected] satisfiable = false +[environment] +python = "3.12" + [root] requires_python = ">=3.10" requires = [