Skip to content

Include readme_renderer errors in error response when rendering fails #18969

@di

Description

@di

What's the problem this feature will solve?
In #18968 we had an example of a rST project description that failed to render, but the error message that PyPI emitted did not contain the rendering error.

Describe the solution you'd like
The readme_renderer project supports providing a warning stream to the render call. E.g., this is how twine gets errors from the renderer. We should also use the warning stream to provide a more detailed error message.

Additional context
Usage of the stream parameter in twine:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions