Closed tillahoffmann closed 1 year ago
@tillahoffmann Thanks! We removed the documented example of using the CLI in https://github.com/pypa/readme_renderer/pull/197 - since the interface doesn't currently render Markdown. Before introducing a CLI that we'd expect to support, would you consider adding that behavior?
Please also update your branch from main
as it includes some test fixes.
Hm, interesting, any idea why pypy might fail while the others succeed? I can also mock out writing to the file rather than using a temporary directory.
Thanks for working through this!
Thanks for the speedy review!
This PR adds an option
--package
to the CLI such that theREADME
of a package can be rendered as it would onpypi.org
. Using this option, package authors can previewREADME
s in addition to checking their validity usingtwine check
. Rendering theREADME
based on the package metadata is important because a number of packages strip out roles and directives that are not supported bypypi.org
in theirsetup.py
. Publishing totest.pypi.org
, as discussed in pypa/twine#875, is an alternative, but having a local preview would be desirable (at least for myself). This PR also adds tests for the existing CLI.