diff --git a/scenarios/fork/requires-python-full-prerelease.toml b/scenarios/fork/requires-python-full-prerelease.toml new file mode 100644 index 00000000..2cf49af0 --- /dev/null +++ b/scenarios/fork/requires-python-full-prerelease.toml @@ -0,0 +1,22 @@ +name = "fork-requires-python-full-prerelease" +description = ''' +This tests that a `Requires-Python` specifier will result in the +exclusion of dependency specifications that cannot possibly satisfy it. + +In particular, this is tested via the `python_full_version` marker with +a pre-release version. +''' + +[resolver_options] +universal = true + +[expected] +satisfiable = false + +[root] +requires_python = ">=3.10" +requires = [ + "a==1.0.0 ; python_full_version == '3.9b1'", +] + +[packages.a.versions."1.0.0"] diff --git a/scenarios/fork/requires-python-full.toml b/scenarios/fork/requires-python-full.toml new file mode 100644 index 00000000..1b104a6d --- /dev/null +++ b/scenarios/fork/requires-python-full.toml @@ -0,0 +1,22 @@ +name = "fork-requires-python-full" +description = ''' +This tests that a `Requires-Python` specifier will result in the +exclusion of dependency specifications that cannot possibly satisfy it. + +In particular, this is tested via the `python_full_version` marker +instead of the more common `python_version` marker. +''' + +[resolver_options] +universal = true + +[expected] +satisfiable = false + +[root] +requires_python = ">=3.10" +requires = [ + "a==1.0.0 ; python_full_version == '3.9'", +] + +[packages.a.versions."1.0.0"] diff --git a/scenarios/fork/requires-python.toml b/scenarios/fork/requires-python.toml new file mode 100644 index 00000000..6ed03e9a --- /dev/null +++ b/scenarios/fork/requires-python.toml @@ -0,0 +1,19 @@ +name = "fork-requires-python" +description = ''' +This tests that a `Requires-Python` specifier will result in the +exclusion of dependency specifications that cannot possibly satisfy it. +''' + +[resolver_options] +universal = true + +[expected] +satisfiable = false + +[root] +requires_python = ">=3.10" +requires = [ + "a==1.0.0 ; python_version == '3.9'", +] + +[packages.a.versions."1.0.0"]