-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Warn when using uv_build
settings without uv_build
#15750
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
base: main
Are you sure you want to change the base?
Conversation
crates/uv-build-frontend/src/lib.rs
Outdated
"There are settings for the `uv_build` build backend defined in \ | ||
`tool.uv.build-backend`, but the project does not use the `uv_build` backend: {}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One potential drawback is that we assume that all future versions will have build-system = "uv_build"
.
fad531f
to
0226753
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crates/uv/tests/it/build_backend.rs
Outdated
warning: There are settings for the `uv_build` build backend defined in `tool.uv.build-backend`, but the project does not use the `uv_build` backend: [TEMP_DIR]/pyproject.toml | ||
Building wheel from source distribution... | ||
warning: There are settings for the `uv_build` build backend defined in `tool.uv.build-backend`, but the project does not use the `uv_build` backend: [CACHE_DIR]/sdists-v9/[TMP]/pyproject.toml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we avoid warning multiple times here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to figure our something that works despite the different paths
crates/uv/tests/it/build_backend.rs
Outdated
----- stderr ----- | ||
Building source distribution... | ||
warning: There are settings for the `uv_build` build backend defined in `tool.uv.build-backend`, but the project does not use the `uv_build` backend: [TEMP_DIR]/pyproject.toml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to rephrase so it's clearer what we're referring to at the end, e.g., "but the uv_build
backend is not used by the project at: PATH"
Co-authored-by: Zanie Blue <[email protected]>
44c9302
to
a7d14f7
Compare
To help with cases such as #15655.
A question is when to show this warning. I've used sources as a proxy as URL dependencies with enabled sources are likely those controlled by the user, and they include workspace and
git clone
d path dependencies.The first commit is a refactoring, the second commit the implementation.
Fixes #15740