简体   繁体   中英

Readme on Github and PyPi

I have my python library on pypi and github. There's only one README file in it which is README.md and it's displayed properly on github. But on pypi it doesn't, it's shown as a plain text. How come and what can I do about it?

Preferably without involving a third-party libraries such as Pandoc.

Please refer to this posting .

To quote the relevant section:

Every package on PyPI needs to have a file called setup.py at the root of the directory. If your'e using a markdown-formatted read me file you'll also need a setup.cfg file.

setup.cfg

This tells PyPI where your README file is.

[metadata]

description-file = README.md

This is necessary if you're using a markdown readme file. At upload time, you may still get some errors about the lack of a readme — don't worry about it. If you don't have to use a markdown README file, I would recommend using reStructuredText (REST) instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM