Skip to content

Add examples to metadata in pyproject.toml page #895

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

Closed
FFY00 opened this issue May 18, 2021 · 6 comments · Fixed by #1191
Closed

Add examples to metadata in pyproject.toml page #895

FFY00 opened this issue May 18, 2021 · 6 comments · Fixed by #1191
Labels
component: specifications type: enhancement A self-contained enhancement or new feature

Comments

@FFY00
Copy link
Member

FFY00 commented May 18, 2021

PEP 621 defines a standard format for package metadata in pyproject.toml. I expect several backends to implement it, but not all to produce high quality documentation on how to use it, specially small domain-specific backends. It would be great to have a tutorial/description of the fields packaging.python.org that backends could point users to. Right now, the best option is to point to the PEP itself.

@webknjaz webknjaz added type: enhancement A self-contained enhancement or new feature help wanted labels May 19, 2021
@henryiii
Copy link
Contributor

Would it be best to add right after or simultaneously with either setuptools or the first implementing backend? (cibuildwheel is sort-of first, but only for requires-python ;) ) It's going to be rather confusing if there's a guide for something but it can't be used yet.

@FFY00
Copy link
Member Author

FFY00 commented May 21, 2021

I was envisioning this more like a separate page backends could point to. The setuptools documentation could show an example, as it is fairly straightforward, and have a link to the full documentation for more details.

@domdfcoding
Copy link

I semi-rewrote PEP 621 as part of the docs for whey (see https://whey.readthedocs.io/en/latest/configuration.html), removing the parts aimed at backend authors and adding examples for each field.

Is that the sort of thing you were thinking of?

@pradyunsg
Copy link
Member

Yea, that looks about right.

@FFY00
Copy link
Member Author

FFY00 commented Jun 22, 2021

Yes, exactly. That documentation will be the same for everyone, so better avoid duplicated efforts.

@pradyunsg
Copy link
Member

pradyunsg commented Nov 28, 2022

We have this mostly, with https://packaging.python.org/en/latest/specifications/declaring-project-metadata/. This still needs examples though, so a PR for that would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: specifications type: enhancement A self-contained enhancement or new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants