-
Notifications
You must be signed in to change notification settings - Fork 1k
long_description_content_type
flag in setup.py seems to (still) be ignored on upload.
#9315
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
Comments
Looking at your build pipeline, I think this may be due to out of date versions of I'd recommend adding the following to your pipeline immediately before
This may also be due to pypa/setuptools#1390. Looking at https://github.com/phseiff/gender-render/blob/main/setup.py, you've got some |
You'd want to do |
Thank you very much; I did that now. The full requested output can be found in this gist.
Thanks for pointing this out to me! I removed the foo = "foobar\
baz" is similar to foo = ("foboar"
+ "baz") in that it makes no difference to the value of Since the
Thanks for the hint; I will do this and share the output here in some minutes (edit: seems like that won't be necessary anymore). |
Yeah, this was definitely pypa/setuptools#1390 then. The same issue exists for all fields, not just the description field, but it often has the effect of seeming to break the description. I'm going to close this issue as resolved, but I'd encourage you to share this in pypa/setuptools#1390 as I wouldn't really consider that issue to be resolved, since it's clear this is still a problem. |
Thanks again for helping me figure out the problem, then. I will be sure to share this in pypa/setuptools#1390 sometime around 👍. |
Describe the bug
I am having the same problem as the one described in #4079 - my project isn't accepted by PyPi because its README isn't valid reStructuredText, even though
long_descripton_content_type
is specified astext/markdown
.However, the issue isn't solved for me by upgrading
pip
,twine
,wheel
andsetuptools
, like this comment suggested, and it was not solved by usingtwine
rather than usingsetup.py bdist_wheel upload
, like the comment additionally suggested.Expected behavior
The package uploads correctly since
long_description_content_type
is set totext/markdown
To Reproduce
The pipeline that is supposed to upload the Package to PyPi can be found here, and the project I am trying to publish to PyPi can be found here, so you should be able to reproduce the issue.
It's also worth noting that uploading to PyPi worked fine with older versions of the project, which is why I assume that the commands I use and my README are correct and the problem is a (new or old) issue with warehouse.
My Platform
I am using Python 3.6 on Ubuntu 18.04 (using the GitHub actions CLI)
Additional Context
I mentioned this issue as a comment under #4079, but now I noticed that according to @di, people encountering similar issues with Description-Content-Type should raise a new issue, which I am hereby doing.
Thanks for any help you might be able to provide with this problem!
The text was updated successfully, but these errors were encountered: