Skip to content

resolve to oldest compatible uv version #620

@tpgillam

Description

@tpgillam

setup-uv will look within e.g. pyroject.toml's tool.uv.required-version field to find any bound on the supported uv version. It will then resolve to find the most recent version of uv that satisfies these constraints.

We're currently wanting to resolve to the oldest version of uv that satisfies these bounds; basically like the '--resolution-strategy lowest` approach in uv itself. Might this be feasible?

The reason for this is that we'd like to add a test in CI to catch cases where our configuration requires features from a newer version of uv than we declare, e.g. if we require a newer managed python version than is supported with that version of uv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions