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:
Søren Fuglede Jørgensen 2022-07-11 22:18:04 +02:00 committed by GitHub
parent f66285c194
commit 8fb79dc7b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: