Closed KenKundert closed 1 year ago
Okay, I have figured this out. The problem was the following lines in the README.rst file:
.. code-block:: nestedtext
nestedtext is a format that has been submitted to pygments but has yet to be accepted and supported. Most renderers will ignore the nestedtext tag if it is unknown, but apparently your renderer is a bit more sensitive.
As far as I am concerned this issue can be closed. I will leave it open for now in case you want to use it as a reminder to make it so that twine check reports this error.
Twine uses the same rendere that PyPI uses, I would expect this to have the same behavior in both cases. Transferring to readme_renderer
's tracker to investigate why this happened.
I recently added a test to confirm that RST would continue to render despite an unknown code block directive: https://github.com/pypa/readme_renderer/pull/256
Closing!
When uploading the latest version of nestedtext, the upload was rejected due to a failure to render the description even though twine check passed.
The README file is restructuredtext, and _long_description_contenttype = 'text/x-rst'. Finally, I have run _readmerenderer on the README.rst file without there being a report of any issues.
I am at a loss as to what to do next. I think the problem is on your end, but I am not sure.