Skip to content

Commit

Permalink
BF/RF: pypi long description - upload markdown, do not try converting…
Browse files Browse the repository at this point in the history
… to rest
  • Loading branch information
yarikoptic committed Jan 28, 2021
1 parent b7dda68 commit 6717f81
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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'],
Expand Down

0 comments on commit 6717f81

Please sign in to comment.