mirror of
https://github.com/astral-sh/uv
synced 2026-06-21 13:47:25 +00:00
b4d32e4356
This makes it easier for us to add resolver scenarios by 1. Rewriting the scenario package generation in Rust 2. Serving scenario packages from memory in a wiremock index 3. Rewriting the scenario test case generation in Rust 4. Dropping all dependencies on packse / the packse index --------- Co-authored-by: Codex <noreply@openai.com>
29 lines
811 B
TOML
29 lines
811 B
TOML
name = "fork-requires-python-patch-overlap"
|
|
description = '''
|
|
This tests that a `Requires-Python` specifier that includes a Python
|
|
patch version will not result in excluded a dependency specification
|
|
with a `python_version == '3.10'` marker.
|
|
|
|
This is a regression test for the universal resolver where it would
|
|
convert a `Requires-Python: >=3.10.1` specifier into a
|
|
`python_version >= '3.10.1'` marker expression, which would be
|
|
considered disjoint with `python_version == '3.10'`. Thus, the
|
|
dependency `a` below was erroneously excluded. It should be included.
|
|
'''
|
|
|
|
[resolver_options]
|
|
universal = true
|
|
|
|
[expected]
|
|
satisfiable = true
|
|
|
|
[environment]
|
|
python = "3.12"
|
|
|
|
[root]
|
|
requires_python = ">=3.10.1"
|
|
requires = ["a==1.0.0 ; python_version == '3.10'"]
|
|
|
|
[packages.a.versions."1.0.0"]
|
|
requires_python = ">=3.10"
|