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

Request for clarification on 'extra' marker in Requires-Dist #1270

Open
astrofrog opened this issue Jun 23, 2023 · 2 comments
Open

Request for clarification on 'extra' marker in Requires-Dist #1270

astrofrog opened this issue Jun 23, 2023 · 2 comments

Comments

@astrofrog
Copy link

astrofrog commented Jun 23, 2023

I have been reading the core metadata specification in the packaging guide and would like to request a clarification on the following section:

https://packaging.python.org/en/latest/specifications/core-metadata/#provides-extra-multiple-use

and specifically the following example:

Provides-Extra: pdf
Requires-Dist: reportlab; extra == 'pdf'

It seems like extra behaves somewhat like an environment marker, but I wanted to check whether == is the only valid supported comparison? Or could one in principle do:

Provides-Extra: pdf
Requires-Dist: reportlab; extra != 'pdf'

If someone can clarify whether this is also legal, I can try and propose a change for the spec to add a clarification.

@sinoroc
Copy link
Contributor

sinoroc commented Jun 23, 2023

This discussion thread "The ‘extra’ environment marker and its operators" is likely related, and probably some other threads about extras as well.


https://packaging.python.org/en/latest/specifications/core-metadata/#project-url-multiple-use

Wrong link. Well it seems like it is the correct page, but the wrong anchor.

@astrofrog
Copy link
Author

Thanks! Oops sorry about the wrong link, fixed

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