-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PEP 621: Incorrect example for authors in pyproject.toml #2680
Comments
Thanks, but I can assure you that @pradyunsg and @uranusjr are two different people 😄 In more detail, the original example is perfectly valid, as the authors field is specified to be an array of tables (dictionaries), each containing one or both of the keys Sorry about that! |
Would it be clearer if the entries had associated comments? |
Maybe? I'd actually tweak this example to add a full name+email entry in the middle. We'll cover this nuance better in the packaging.python.org pages for this spec though, which are being worked on right now. I have a mild preference to not modify already accepted PEPs to make them better reference material on their own, but to direct folks to packaging.python.org instead. |
Yes sorry, I got confused:
Adding an example with both name and email might clear that out indeed 👍 (from the email only, it's not obvious that it doesn't belong to the name person honestly) |
I'm not sure if updating the PEP is the right place to be placing an example at this point. The official spec for |
No worries if you think it's better to leave it this way. I only brought that up out of confusion 👍 |
Right now, the current spec over there doesn't currently have examples at all—is it the plan to add them, or something else? I don't seem to see any public discussion on that repo about what those plans are...is that occurring somewhere else? One related ambiguity in the current spec, though—it states that both keys are optional, so would an empty table simply be ignored, an error or something else? |
No specific plan, but that doesn't say much either. 😉 I think I left them out when I wrote the docs simply because the other specs didn't have them. But that doesn't mean it wouldn't be a good idea to have examples.
The spec should have said both keys are optional, but at least one key is required. I've opened pypa/packaging.python.org#1103 to fix that. |
Thanks for the insight! I think it would be a good idea to add them, FWIW, and could help with that, since its a pretty mechanical task. Diataxis advocates for succinct examples in reference material, and I find them to be a major aid to understanding when reading other PyPA specs, particularly if there's any ambiguity or lack of complete explicit detail in the specification text (which is often difficult to realize a priori as a spec author). And as for the other specs, of those fully migrated to the spec page, it seems like they now pretty much all do (perhaps added later):
So really, now Declaring Project [Source] Metadata is the only odd one out 😆
💯 |
Hello there 👋
I believe that I spotted a mistake in the pyproject.toml example for the authors in PEP 621:
while it should be:
Let me know if I can help fixing that!
The text was updated successfully, but these errors were encountered: