rules_python
rules_python copied to clipboard
Support for Description-Content-Type in py_wheels
🚀 feature request
Relevant Rules
py_wheel
Description
PEP 566 added the ability to use different formats markup syntax's in the package description, by introducing the Description-Content-Type field in the metadata. Adding support for setting this field would allow the use of markdown files to be used for the description.
Describe the solution you'd like
A new attribute added to py_wheel that when set will add the Description-Content-Type to the wheel's METADATA file.
The attribute should allow the selection of the current valid values:
text/plaintext/x-rsttext/markdown
Ideally, the variant setting for markdown would be supported, so you can choose either GFM or CommonMark, but it would be fine without this.