Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove build backend parking breaks #11576

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

konstin
Copy link
Member

@konstin konstin commented Feb 17, 2025

We want to make it easier for users to try the build backend, so we allow using the build backend without requiring UV_PREVIEW=1. Instead, we only print a note about the preview status of the build backend. This improves using packages with the uv build backend with other PEP 517 frontends that don't have uv's --preview flag.

We want to make it easier for users to try the build backend, so we add `UV_PREVIEW=1`
@konstin konstin added the preview Experimental behavior label Feb 17, 2025
@cthoyt
Copy link
Contributor

cthoyt commented Feb 17, 2025

much appreciated!

__all__ = [
"find_uv_bin",
# PEP 517 hook `build_sdist`.
"build_sdist",
Copy link
Member

Choose a reason for hiding this comment

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

Does this preclude us from moving these into a separate namespace later? (as discussed elsewhere)

Copy link
Member Author

Choose a reason for hiding this comment

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

Imo they are still preview and as such subject to change at any time, but we can also merge the PR #11478 -> #11446 first and start with uv_build directly.

Comment on lines 25 to +34
def warn_config_settings(config_settings: "Mapping[Any, Any] | None" = None) -> None:
import os
import sys

if not os.environ.get("UV_PREVIEW"):
print(
"Warning: The uv build backend is in preview. "
"Set the `UV_PREVIEW` environment variable to `1` to acknowledge.",
file=sys.stderr,
)
Copy link
Member

Choose a reason for hiding this comment

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

It's kind of weird to have this in warn_config_settings?

@konstin konstin marked this pull request as draft February 19, 2025 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants