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

uv init --script on existing file could initialize required imports... #12261

Open
patniemeyer opened this issue Mar 18, 2025 · 1 comment
Open
Labels
enhancement New feature or improvement to existing functionality wish Not on the immediate roadmap

Comments

@patniemeyer
Copy link

Summary

It would be very convenient if invoking uv init --script foo.py on an existing foo.py would not only add the script comment but populate the dependencies with the apparent file imports.

Thanks! Very much enjoying not having to make a dozen venvs a day now :)

Example

No response

@patniemeyer patniemeyer added the enhancement New feature or improvement to existing functionality label Mar 18, 2025
@zanieb
Copy link
Member

zanieb commented Mar 18, 2025

Yeah this would be cool, we don't have import -> dependency mapping support yet. See also #11650

@zanieb zanieb added the wish Not on the immediate roadmap label Mar 18, 2025
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 wish Not on the immediate roadmap
Projects
None yet
Development

No branches or pull requests

2 participants