Steps to replicate the issue:
Pypi upload fails after documentation update of README.rst and ROADMAP.rst.
What happens?:
The description failed to render in the default format of reStructuredText.
D:\pwb\GIT\core>twine upload dist/* --repository testpypi --verbose Uploading distributions to https://test.pypi.org/legacy/ INFO dist\pywikibot_core-8.0.0-py3-none-any.whl (679.6 KB) INFO dist\pywikibot-core-8.0.0.tar.gz (584.2 KB) INFO Querying keyring for username Enter your username: <redacted> INFO Querying keyring for password Enter your password: INFO username: <redacted> INFO password: <hidden> Uploading pywikibot_core-8.0.0-py3-none-any.whl 100% ---------------------------------------- 729.7/729.7 kB • 00:00 • 1.1 MB/s INFO Response from https://test.pypi.org/legacy/: 400 The description failed to render in the default format of reStructuredText. See https://test.pypi.org/help/#description-content-type for more information. INFO <html> <head> <title>400 The description failed to render in the default format of reStructuredText. See https://test.pypi.org/help/#description-content-type for more information.</title> </head> <body> <h1>400 The description failed to render in the default format of reStructuredText. See https://test.pypi.org/help/#description-content-type for more information.</h1> The server could not comply with the request since it is either malformed or otherwise incorrect.<br/><br/> The description failed to render in the default format of reStructuredText. See https://test.pypi.org/help/#description-content-type for more information. </body> </html> ERROR HTTPError: 400 Bad Request from https://test.pypi.org/legacy/ The description failed to render in the default format of reStructuredText. See https://test.pypi.org/help/#description-content-type for more information.
Replacing .. code:: with :: does not help.
Software version:
Pywikibot 8.0.0
Other information:
Upload still works for Pywikibot 7.7: https://pypi.org/project/pywikibot/#history
@KBach: any idea?