-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 |
Hello to all! I'm new to issues but want to join the pool of feature requesters! It would be great to have alternative names for the initial p.s.: Thank you a million for creating such amazing tools like uv and ruff, I just started using them and am already in deep love!! Gonna spread the word across my fellow python devs and enjoyers <3 |
@zanieb I'd much prefer |
@nbbaier Do you have a justification? When you do |
Similarly, An example counter-point would be
|
Wouldn't the equivalent of cargo's |
@Ravencentric that layout requires a build backend, but is ~what we do with
|
I honestly don't have much of a justification, to be honest. I'm mostly work with JS/TS, so I'm not used to my main entry points being named |
Fixed in #10369 |
Initially it seemed like `app.py` might be slightly more desirable but people seem to overwhelmingly favour `main.py` as a good "generic" name. Fixes astral-sh#7782
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: