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

Respect requires-python in uv lock #4282

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Respect requires-python in uv lock #4282

merged 1 commit into from
Jun 12, 2024

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Jun 12, 2024

We weren't using the common interface in uv lock because it didn't support finding an interpreter without touching the virtual environment. Here I refactor the project interface to support what we need and update uv lock to use the shared implementation.

@zanieb zanieb added bug Something isn't working preview Experimental behavior labels Jun 12, 2024
workspace: &Workspace,
python: Option<&str>,
preview: PreviewMode,
Copy link
Member Author

Choose a reason for hiding this comment

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

We should assume preview is enabled during preview commands for now.

Copy link
Member Author

Choose a reason for hiding this comment

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

(i.e. if I'm using the experimental interface I shouldn't need to opt-in to managed toolchains)

@zanieb zanieb marked this pull request as ready for review June 12, 2024 17:16
@zanieb zanieb merged commit 3910b7a into main Jun 12, 2024
47 checks passed
@zanieb zanieb deleted the zb/lock-requires branch June 12, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants