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 PEP 723 script lockfiles in uv run #10136

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Dec 24, 2024

Summary

If a script has a lockfile, then uv run will now reuse it.

Closes #7483.

Closes #9688.

@charliermarsh charliermarsh added enhancement New feature or improvement to existing functionality no-build Disable building binaries in CI no-test Disable CI tests for a pull request labels Dec 24, 2024
@charliermarsh charliermarsh force-pushed the charlie/script-run branch 2 times, most recently from ae1298c to 786928d Compare December 24, 2024 03:05
@charliermarsh charliermarsh marked this pull request as draft December 24, 2024 03:13
@charliermarsh charliermarsh force-pushed the charlie/script-target branch 3 times, most recently from 0095740 to 9ca5fd2 Compare December 25, 2024 20:25
@charliermarsh charliermarsh removed no-build Disable building binaries in CI no-test Disable CI tests for a pull request labels Dec 25, 2024
@charliermarsh charliermarsh marked this pull request as ready for review December 25, 2024 20:25
@charliermarsh charliermarsh requested a review from zanieb December 26, 2024 20:02
@@ -200,109 +200,57 @@ pub(crate) async fn run(
.await?
.into_interpreter();

// Determine the working directory for the script.
Copy link
Member

Choose a reason for hiding this comment

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

Feeling like "run script" should live in it's own function at some point

@charliermarsh charliermarsh force-pushed the charlie/script-target branch from 6387028 to cede350 Compare January 8, 2025 18:26
Base automatically changed from charlie/script-target to main January 8, 2025 18:36
@charliermarsh charliermarsh enabled auto-merge (squash) January 8, 2025 20:25
@charliermarsh charliermarsh merged commit e22b728 into main Jan 8, 2025
64 checks passed
@charliermarsh charliermarsh deleted the charlie/script-run branch January 8, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants