rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

Support for Description-Content-Type in py_wheels

Open gwjo opened this issue 3 years ago • 0 comments

🚀 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/plain
  • text/x-rst
  • text/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.

gwjo avatar Feb 04 '22 23:02 gwjo