diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2020-05-18 16:00:32 -0400 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2020-05-18 16:11:57 -0400 |
commit | dc8583916a4c78feebdca4e93509dbfc439751c0 (patch) | |
tree | debf7205c2263a18efd1ce58b96aeaa9a4080794 | |
parent | 7d978e13c3762bb58005e7f36c0514b64a1c5005 (diff) | |
download | python-markdown-dc8583916a4c78feebdca4e93509dbfc439751c0.tar.gz |
Use README.md for long_description.
With `long_description_content_type="text/markdown"` it is now possible
to use Markdown text in the `long_description` meta-data field. Make sure
the latest tools (setuptools, wheel, twine) are installed before deploying.
See https://dustingram.com/articles/2018/03/16/markdown-descriptions-on-pypi/
for details.
-rwxr-xr-x | setup.py | 24 |
1 files changed, 3 insertions, 21 deletions
@@ -52,27 +52,8 @@ DEVSTATUS = dev_status_map[__version_info__[3]] # conflict with the perl implimentation (which uses "markdown"). SCRIPT_NAME = 'markdown_py' - -long_description = ''' -This is a Python implementation of John Gruber's Markdown_. -It is almost completely compliant with the reference implementation, -though there are a few known issues. See Features_ for information -on what exactly is supported and what is not. Additional features are -supported by the `Available Extensions`_. - -.. _Markdown: https://daringfireball.net/projects/markdown/ -.. _Features: https://Python-Markdown.github.io#features -.. _`Available Extensions`: https://Python-Markdown.github.io/extensions/ - -Support -======= - -You may report bugs, ask for help, and discuss various other issues on -the `bug tracker`_. - -.. _`bug tracker`: https://github.com/Python-Markdown/markdown/issues -''' - +with open('README.md') as f: + long_description = f.read() setup( name='Markdown', @@ -81,6 +62,7 @@ setup( download_url='http://pypi.python.org/packages/source/M/Markdown/Markdown-%s-py2.py3-none-any.whl' % __version__, description='Python implementation of Markdown.', long_description=long_description, + long_description_content_type='text/markdown', author='Manfred Stienstra, Yuri takhteyev and Waylan limberg', author_email='waylan.limberg@icloud.com', maintainer='Waylan Limberg', |