我上传了一个包到 pypi.org,但我的 RST README 格式不正确。
这是 GitHub 上的样子:https : //github.com/NinjaSnail1080/akinator.py
这是 PyPi 上的样子:https ://pypi.org/project/akinator.py/
出于某种原因,在 GitHub 上一切都被正确格式化,但在 PyPi 上,它根本没有被格式化。它没有显示在 RST 中格式化的 README,它只是一堆未格式化的文本。
我尝试python3 -m twine check dist/*在我的项目上运行并得到这个:
Checking distribution dist/akinator.py-1.0.3.dev3-py3-none-any.whl: warning: `long_description_content_type` missing. defaulting to `text/x-rst`.
Failed
The project's long_description has invalid markup which will not be rendered on PyPI. The following syntax errors were detected:
line 26: Error: Unexpected indentation.
Checking distribution dist/akinator.py-1.0.3.dev3.tar.gz: warning: `long_description_content_type` missing. defaulting to `text/x-rst`.
Failed
The project's long_description has invalid …Run Code Online (Sandbox Code Playgroud)