Skip to content

Query facts from root during resolution #263

Closed
@konstin

Description

@konstin

Background When uv queries multiple versions of a package in a row, it will start to prefetch many versions. In this, I tried resolving https://github.com/getsentry/sentry/blob/51281a6abd8ff4a93d2cebc04e1d5fc7aa9c4c11/requirements-base.txt, which has sentry-kafka-schemas>=0.1.50. We try a lot of versions (until eventually realizing we went down the wrong path), but we're also trying versions <0.1.50 since for the motivating example (boto/botocore/urllib3), the partial solution would forbid prefetching.

It would be great to have an API to query unchangeable facts about package version, i.e. incompatibilities with root, such as sentry-kafka-schemas>=0.1.50 being always true, to avoid doing the wrong batch prefetching. We can subsequently apply this to our other prefetching, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions