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

requires-extra not documented for new style metadata #616

Open
koubaa opened this issue Dec 16, 2022 · 4 comments
Open

requires-extra not documented for new style metadata #616

koubaa opened this issue Dec 16, 2022 · 4 comments

Comments

@koubaa
Copy link

koubaa commented Dec 16, 2022

requires-extra is documented only under the old style metadata
https://flit.pypa.io/en/latest/pyproject_toml.html#module-section

I want to add a requires-extra section to a module that uses the new style metadata, and I'm stuck with trying to migrate from new-style to old-style, which is lossy and I suppose it is not what flit wants its users to do.

@pradyunsg
Copy link
Member

pradyunsg commented Dec 16, 2022

You're looking for project.optional-dependencies?

@pradyunsg
Copy link
Member

pradyunsg commented Dec 16, 2022

I don't believe there's any bits of information being lost in the translation.

@koubaa
Copy link
Author

koubaa commented Dec 16, 2022

@pradyunsg ah yes that would be it. I suppose it would be helpful for each old-style metadata attribute to mention what the equivalent new-style metadata attribute is if the name is different - I really couldn't find it.

@takluyver
Copy link
Member

I hope not every entry needs this - quite a few of them are exactly the same - but I agree that requires-extra to optional-dependencies is not super obvious, so maybe one or two such 'translations' are worth including, if someone wants to make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants