pypa / pypa/packaging.python.org
Request for clarification on 'extra' marker in Requires-Dist
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 1.7k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 4
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the core metadata specification section linked in the issue, especially the Provides-Extra example and its environment-marker rules. Determine whether comparisons other than == are legal for extra, then clarify the specification or identify the wording that needs updating; the issue is done when the rule is unambiguous.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100