Skip to content

Only warn about unbounded build backends for source distributions - #638

Closed
zaniebot wants to merge 2 commits into
mainfrom
zb/uv-build-sdist-warning
Closed

zaniebot wants to merge 2 commits into
mainfrom
zb/uv-build-sdist-warning

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

An unbounded uv_build requirement currently triggers a warning while building wheels, editable wheels, and metadata even though those artifacts do not distribute build-system requirements. Restrict the missing-upper-bound warning to source-distribution builds while retaining the other build-system compatibility checks for every build. Related to astral-sh#21074.

@astral-automations-bot astral-automations-bot Bot added the bug Something isn't working label Aug 12, 2026

/// Warn about an unbounded build backend only when producing a source distribution.
#[test]
fn build_fast_path_unbounded_backend() -> Result<()> {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where's the test coverage for uv publish --wheel and uv sync etc?

@zanieb
zanieb marked this pull request as ready for review August 12, 2026 18:06
@astral-automations-bot

Copy link
Copy Markdown

Promoted to #21078.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants