Use pypandoc.convert_file instead of pypandoc.convert (#201)
This fixes an issue that breaks the build when using `pypandoc` 1.8 and above in which `convert` has been removed; see https://github.com/man-group/pytest-plugins/issues/87#issuecomment-1123830409
This commit is contained in:
parent
f66285c194
commit
8fb79dc7b5
2
setup.py
2
setup.py
|
@ -49,7 +49,7 @@ requirements_dev = list(obtain_requirements('requirements-dev.txt'))
|
|||
try:
|
||||
import pypandoc
|
||||
|
||||
long_description = pypandoc.convert('README.md', 'rst')
|
||||
long_description = pypandoc.convert_file('README.md', 'rst')
|
||||
except ImportError:
|
||||
warnings.warn('Could not locate pandoc, using Markdown long_description.', ImportWarning)
|
||||
with open('README.md') as f:
|
||||
|
|
Loading…
Reference in New Issue