Provide a Description-Content-Type in Pypi upload for README markdown

In accordance with the specifications of PyPA, when loading into Pypi, it should be possible to use README files in markdown format.

What I do not quite understand is where to place this configuration line. I suspect that it should be PKG-INFO, but a) it does not work (I added it manually after setup.py dist) and b) I do not think that it should be added manually.

I also added README.md to Manifest.in.

include README.md

and specify this in setup.cfg:

[metadata]
description-file = README.md

You can watch my repo here .

However, nothing appears on pypi, as if there was no README.

, RST , , MD RST, (, - RST). PyPA, , .

+6
1

: ()

long-description-content-type = text/markdown

UPDATE

prb

. test.pypi github.

0

Source: https://habr.com/ru/post/1682995/


All Articles