I uploaded a package to pypi.org but my RST README isn't formatted correctly.
This is what it looks like on GitHub: https://github.com/NinjaSnail1080/akinator.py
This is what it looks like on PyPi: https://pypi.org/project/akinator.py/
For some reason, on GitHub everything is formatted correctly, but on PyPi, it isn't formatted at all. Instead of showing the README formatted in RST, it's just a complete mess of unformatted text.
I tried running python3 -m twine check dist/*
on my project and got this:
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 markup which will not be rendered on PyPI. The following syntax errors were detected:
line 26: Error: Unexpected indentation.
line 26: Error: Unexpected indentation.
For some reason, it says the long_description_content_type
is missing, which is untrue. My setup.py file specifically says long_description_content_type="text/x-rst"
. It also mentions unexpected indentations in line 26 of the long description
, but there are no indentations at all in that line.
I have absolutely no idea what I did wrong here. Somehow, it looks perfectly fine on GitHub, but on PyPi, it's just a mess. And the warnings that twine check
gave me don't make any sense.
setuptools
and regenerate distributions. – phd