-
Notifications
You must be signed in to change notification settings - Fork 615
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
Add requires-python
to uv init
#5322
Conversation
b5f7ae0
to
d861b5d
Compare
) | ||
.await? | ||
.into_interpreter(); | ||
RequiresPython::greater_than_equal_version(&interpreter.python_minor_version()) |
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.
@zanieb - Can you review that what I'm doing with the discovery here is reasonable?
d861b5d
to
6760f51
Compare
Yeah... Though unfortunately we need to create the I'll figure something out. |
Just a heads-up, |
@j178 - We also check that before modifying the workspace manifest. |
6760f51
to
81205d4
Compare
Summary
Prefers, in order:
--python
.requires-python
from the workspace.If the
--python
request is a version or a version range, we use that without fetching an interpreter.Closes #5299.