Use pypandoc.convert_text instead of pypandoc.convert#21
Conversation
|
Please release ASAP, convert function has been deprecated for over a year, also affected: $ pip install -Ue . × Preparing metadata (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
msabramo/setuptools-markdown#21 setuptools-markdown use old API of pandoc and is the updated.
`setuptools-markdown` relies on a deprecated function `pypandoc.convert`. This patch explicitly requests an older version of `pypandoc` until a patch has been released for `setuptools-markdown`: - msabramo/setuptools-markdown#21 In addition, the environment variable `NO_PANDOC` has been introduced to allow to build and install `docker-inside` without adding `setuptools-markdown` and `pypandoc` as a build time dependency (`setup_requires`).
`setuptools-markdown` relies on a deprecated function `pypandoc.convert`. This patch explicitly requests an older version of `pypandoc` until a patch has been released for `setuptools-markdown`: - msabramo/setuptools-markdown#21 In addition, the environment variable `NO_PANDOC` has been introduced to allow to build and install `docker-inside` without adding `setuptools-markdown` and `pypandoc` as a build time dependency (`setup_requires`).
`setuptools-markdown` relies on a deprecated function `pypandoc.convert`. This patch explicitly requests an older version of `pypandoc` until a patch has been released for `setuptools-markdown`: - msabramo/setuptools-markdown#21 In addition, the environment variable `NO_PANDOC` has been introduced to allow to build and install `docker-inside` without adding `setuptools-markdown` and `pypandoc` as a build time dependency (`setup_requires`).
`setuptools-markdown` relies on a deprecated function `pypandoc.convert`. This patch explicitly requests an older version of `pypandoc` until a patch has been released for `setuptools-markdown`: - msabramo/setuptools-markdown#21 In addition, the environment variable `NO_PANDOC` has been introduced to allow to build and install `docker-inside` without adding `setuptools-markdown` and `pypandoc` as a build time dependency (`setup_requires`).
`setuptools-markdown` is deprecated now: - https://dustingram.com/articles/2018/03/16/markdown-descriptions-on-pypi/ `setuptools >= 38.6.0` now has support to include markdown. `setuptools-markdown` relies on a deprecated function `pypandoc.convert`. Newer versions of pypandoc are not supporting this function anymore and this broke the build. A patch is pending but `setuptools-markdown` has been deprecated: - msabramo/setuptools-markdown#21 - https://pypi.org/project/setuptools-markdown/ In addition, the environment variable `NO_README` has been introduced to allow to build and install `docker-inside` without adding the markdown description (which is only required for releases on pypi).
|
@msabramo this bug continues to cause of a lot of grief, hundreds of packages on github are still impacted https://github.com/search?q=long_description_markdown_filename+path%3A**%2Fsetup.py++NOT+is%3Afork&type=code Could you please reconsider merging this change and re-releasing to pypi? If you intend not to make any further changes to this project, please also let me know that. I will try to persuade @JessicaTegner to consider re-introducing this legacy function. As many of the impacted packages are no longer maintained it is difficult to persuade them to accept a setup.py change of Note that the error message is different without 'wheel' package installed, |
Currently, pypandoc does not have
convertfunction. https://github.com/NicklasTegner/pypandoc/blob/master/pypandoc/__init__.pypypandoc only has
convert_fileorconvert_text.Actually pypandoc previously have
convertfunction like https://github.com/NicklasTegner/pypandoc/blob/c06d7b64a58729fa174b7721dac6c600fad166af/pypandoc/__init__.py