Skip to content

Non-universal resolver should ignore requires-python upper bound #5045

@konstin

Description

@konstin

Without universal resolution, we fail to resolve colabfold 1.5.5 on python 3.12, since it only supports python 3.9 to 3.11:

$ echo "colabfold==1.5.5" | uv pip compile -p 3.12 -
    × No solution found when resolving dependencies:
    ╰─▶ Because the requested Python version (3.12.0) does not satisfy Python>=3.9,<3.12 and colabfold==1.5.5 depends on
        Python>=3.9,<3.12, we can conclude that colabfold==1.5.5 cannot be used.
        And because you require colabfold==1.5.5, we can conclude that the requirements are unsatisfiable.

We generally ignore upper version bounds (#4022), the universal resolver also resolves succesfully:

$ echo "colabfold==1.5.5" | uv pip compile -p 3.12 --universal -
Resolved 62 packages in 23ms
[...]
colabfold==1.5.5
[...]

We should change the regular resolver to ignore this requires-python upper bound, too, and make it clear in the docs that we ignore all requires-python upper bounds.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions