Skip to content

Instantly share code, notes, and snippets.

@mfcovington
Created December 8, 2015 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfcovington/112c355cf41c68caab43 to your computer and use it in GitHub Desktop.
Save mfcovington/112c355cf41c68caab43 to your computer and use it in GitHub Desktop.
Convert README.md into reStructuredText
# From: https://bitbucket.org/pypa/pypi/issues/148/support-markdown-for-readmes#comment-23875412
import setuptools
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
setuptools.setup(
name='example',
version=find_version('example.py'),
long_description=long_description,
...
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment