-
Notifications
You must be signed in to change notification settings - Fork 624
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
should autofill the authors
field in pyproject.toml
#7718
Comments
uv init
should add author
field in pyproject.tomluv init
should autofill the authors
field in pyproject.toml
How would we determine the |
So I just checked poetry, pdm, and hatch. Both poetry and hatch pull the author from Case 1: No git on the system OR unconfigured gitYou can check that git (if installed) doesn't have a configured author by running: $ git config user.name # no output
$ git config user.email # no output Both hatch and poetry use a placeholder in this case:
Case 2: Configured git exists on the systemConfigure git:
Now both poetry and hatch will pull the author field from the above git configuration:
|
As I prefer not to expose my personal email in the Git commit history, I usually set up accounts with email addresses like |
I'd prefer pdm's approach (also w.r.t. @FishAlchemist's comment), plus a way to store this info in the user-level configuration (e.g., For a non-Python precedent see |
I like the idea of being able to define commonly shared project metadata in user level uv.toml |
Feature Request
poetry init
autofills theauthors
field:I find this quite helpful. This is usually boiler-plate that I'll have to fill anyway and not something that frequently changes so I doubt this will be controversial either. Would love to see this in
uv init
.Wish
I would also like it if
uv init
would autofill license field. MIT seems to be the popular option as of 2018. This might be harder to get a consensus on so I don't mind if this gets rejected. This can also be tied to a specific mode, like say--package
and--lib
but not with--app
since the former two are supposed to be published and the latter isn't. Prior art example for this would behatch
which uponhatch new
creates this:along with the
license.txt
The text was updated successfully, but these errors were encountered: