-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown not rendering due to missing long_description_content_type
#395
Comments
Did you specify the type of syntax you were using? markdown is not the default. |
Hi, @jamadden, I did specify in the setup.py that long_description_content_type = 'text/markdown' |
The issue is that you have Windows-style newlines in your
This is causing wheel to write truncated metadata:
Can you tell us about how you built these distributions? |
I see, unfortunately I don't have access to a linux computer atm. It's built using simply python setup.py sdist bdist_wheel --universal Is it possible to fix without using rst-formatted README (which I don't mind to switch to if needed to)? wheel version = 0.35.1 |
I'm a little confused actually because the version in your repo does not have windows-style line endings:
Did something change? Rebuilding with this new README might fix it. |
Hi @di, sorry, I might have confused you a bit. The error message is from the latest github repo (at version 0.2.1 and commit c5e4fe3600ed965b3ecd5c8460a736046027e1ff). What I meant is that the already uploaded version on PyPI (0.2.0) had similar problem, but since I needed it to be posted there for other developments, so I didn't correct this rendering error. Your version of the README still has similar issue after building. Checking dist\hdfio-0.2.1-py2.py3-none-any.whl: PASSED, with warnings
warning: `long_description_content_type` missing. defaulting to `text/x-rst`.
Checking dist\hdfio-0.2.1.tar.gz: FAILED
`long_description` has syntax errors in markup and would not be rendered on PyPI.
line 54: Warning: Block quote ends without a blank line; unexpected unindent.
warning: `long_description_content_type` missing. defaulting to `text/x-rst`. I needed to add an additional enter/newline below the last code block to clear the block quote warning, so now it's only, Checking dist\hdfio-0.2.1-py2.py3-none-any.whl: PASSED, with warnings
warning: `long_description_content_type` missing. defaulting to `text/x-rst`.
Checking dist\hdfio-0.2.1.tar.gz: PASSED, with warnings
warning: `long_description_content_type` missing. defaulting to `text/x-rst`. It's some progress, but the README renderer is still defaulted to |
Can you tell us what version of setuptools, wheel and twine you have installed? |
I have the following setup. setuptools==47.1.1
setuptools-markdown==0.2
setuptools-scm==3.5.0
wheel==0.35.1
twine==3.2.0 |
So the right thing to be looking at, as @di pointed out is the The line is not in the METADATA file and so twine can't use it. @di, can this issue be moved to a more appropriate repository since it's not a bug with Twine? |
So basically windows-style line ending will trigger the |
No. It means your |
I see the |
This is pypa/setuptools#1126 |
So I removed the Except now that the fenced code block (with triple backticks) in |
I realized that one can use the alternative markup of a code block to let the markdown parser read it correctly, like the following, |
Hi there, I have a markdown rendering issue on PyPI, but this doesn't seem to fit with any previous case.
My computer runs Windows 10.
When building and twin-checking the repo hdfio (https://github.com/RealPolitiX/hdfio), the following error appeared.
The upload to PyPI (https://pypi.org/project/hdfio/) doesn't render the text in README.md (version 0.2.0 has the same issue).
twine was installed using pip.
To reproduce the error message above, use the following
python setup.py sdist bdist_wheel --universal twine check dist/*
The text was updated successfully, but these errors were encountered: