From 6717f8118d68bb78f9b7a4ad261c9e8b7ae636cf Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 28 Jan 2021 10:36:17 -0500 Subject: [PATCH] BF/RF: pypi long description - upload markdown, do not try converting to rest --- setup.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index fcf781a6b..9793e0e3b 100755 --- a/setup.py +++ b/setup.py @@ -136,14 +136,8 @@ def findsome(subdir, extensions): # 'build_py': DataladBuild } -# PyPI doesn't render markdown yet. Workaround for a sane appearance -# https://github.com/pypa/pypi-legacy/issues/148#issuecomment-227757822 -README = opj(dirname(__file__), 'README.md') -try: - import pypandoc - long_description = pypandoc.convert(README, 'rst') -except ImportError: - long_description = open(README).read() +with open(opj(dirname(__file__), 'README.md')) as f: + long_description = f.read() setup( name="reproman", @@ -152,6 +146,10 @@ def findsome(subdir, extensions): version=version, description="Neuroimaging Computational Environments Manager", long_description=long_description, + # following https://packaging.python.org/guides/making-a-pypi-friendly-readme/ + # might need + # python3 -m pip install --user --upgrade setuptools wheel twine + long_description_content_type='text/markdown', packages=reproman_pkgs, python_requires='>=3.6', install_requires=requires['core'],