-
Notifications
You must be signed in to change notification settings - Fork 985
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
FR: uv init
option to specify alternative filename to hello.py
#7782
Comments
My initial reaction is that adding an argument for this feels unnecessary. It’s almost as much work to provide the argument as it is to rename the file. I’m gonna defer to @zanieb on this one though. |
Fair point. I think my preference here would actually be making uvi() {
uv init "$@"
mv hello.py main.py
} |
#7670 is similar but not the same, about picking more commonly preferred defaults |
I think we could call it |
If it helps as a data-point: From the research I did for the Heroku Python buildpacks [1] (using metrics from many thousands of builds/apps), the most common filenames we see in "single [1]: One of the features of Heroku is that users can |
When using
uv init
(oruv init --app
), I find it kind of strange that entrypoint file generated is namedhello.py
and notmain.py
. Right, as far as I can tell, now the only solution is to manually change the filename.It would be great to have an option to specify the entrypoint's filename, something like
uv init --entrypoint main.py
, or change the default tomain.py
instead ofhello.py
The text was updated successfully, but these errors were encountered: