File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff 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
148142setup (
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' ],
You can’t perform that action at this time.
0 commit comments