Skip to content

Pass metadata range requests through settings - #21354

Merged
zanieb merged 2 commits into
astral-sh:mainfrom
zaniebot:zb/propagate-metadata-range-requirement
Aug 31, 2026
Merged

zanieb merged 2 commits into
astral-sh:mainfrom
zaniebot:zb/propagate-metadata-range-requirement

Conversation

@zaniebot

@zaniebot zaniebot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

UV_REQUIRE_METADATA_RANGE_REQUESTS is currently parsed inside uv-client, which makes client construction depend on ambient environment state.

Parse it with EnvironmentOptions, map it to MetadataRangeRequest::{Fallback, Require}, and pass it through BaseClientBuilder to every registry client. This addresses review feedback.

@zaniebot
zaniebot force-pushed the zb/propagate-metadata-range-requirement branch from cc62d92 to a2c7894 Compare August 28, 2026 21:02
@zaniebot zaniebot changed the title Require wheel metadata range requests via settings Pass metadata range requests through settings Aug 28, 2026
@zanieb
zanieb requested a review from charliermarsh August 28, 2026 21:04
@zanieb
zanieb marked this pull request as ready for review August 28, 2026 21:05
@zanieb zanieb added the internal A refactor or improvement that is not user-facing label Aug 31, 2026
@zanieb
zanieb merged commit 05763cf into astral-sh:main Aug 31, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants