Skip to content

Commit 6717f81

Browse files
committed
BF/RF: pypi long description - upload markdown, do not try converting to rest
1 parent b7dda68 commit 6717f81

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

setup.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,8 @@ def findsome(subdir, extensions):
136136
# 'build_py': DataladBuild
137137
}
138138

139-
# PyPI doesn't render markdown yet. Workaround for a sane appearance
140-
# https://github.com/pypa/pypi-legacy/issues/148#issuecomment-227757822
141-
README = opj(dirname(__file__), 'README.md')
142-
try:
143-
import pypandoc
144-
long_description = pypandoc.convert(README, 'rst')
145-
except ImportError:
146-
long_description = open(README).read()
139+
with open(opj(dirname(__file__), 'README.md')) as f:
140+
long_description = f.read()
147141

148142
setup(
149143
name="reproman",
@@ -152,6 +146,10 @@ def findsome(subdir, extensions):
152146
version=version,
153147
description="Neuroimaging Computational Environments Manager",
154148
long_description=long_description,
149+
# following https://packaging.python.org/guides/making-a-pypi-friendly-readme/
150+
# might need
151+
# python3 -m pip install --user --upgrade setuptools wheel twine
152+
long_description_content_type='text/markdown',
155153
packages=reproman_pkgs,
156154
python_requires='>=3.6',
157155
install_requires=requires['core'],

0 commit comments

Comments
 (0)