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 --app should create main.py instead of hello.py #10392

Closed
kdheepak opened this issue Jan 8, 2025 · 1 comment
Closed

uv init --app should create main.py instead of hello.py #10392

kdheepak opened this issue Jan 8, 2025 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or improvement to existing functionality

Comments

@kdheepak
Copy link
Contributor

kdheepak commented Jan 8, 2025

I've been using uv init --app a lot more recently because I've deploying a script using panel. I consistently rename hello.py to main.py.

I do think hello.py might a good beginner friendly name. I also think main.py would be equally obvious as to the fact that this is a script that is runnable. I think the following names would be all equally intuitive as an entrypoint.

  • main.py
  • {project_name}.py
  • cli.py
  • script.py
  • entrypoint.py

The reasoning for this change is that I think uv should prefer that commonly used commands were optimized for long term or frequent users, while still being beginner friendly.

@charliermarsh
Copy link
Member

Thanks! I think this is a duplicate of #7782 which is addressed by #10369 (in the next minor release).

@charliermarsh charliermarsh added duplicate This issue or pull request already exists enhancement New feature or improvement to existing functionality labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or improvement to existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants