-
Notifications
You must be signed in to change notification settings - Fork 1k
Unlike legacy PyPI, Warehouse does not import /README.rst if no long_description is provided #3630
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
Thanks for the report, @bskinn. Could this be something that is happening in |
@brainwane Ahhh, good point, you're right. It might well be occurring before Warehouse even sees it. I always upload both as |
Looking at the It's possible that pulling in You can check your packages' description with the
Since It looks like you've already added |
@bskinn when I have a Python packaging problem and it turns out to be somewhere in the toolchain but I'm not sure where, https://github.com/pypa/packaging-problems/issues/ is a good place to open an issue - if you do that, please do link back here. |
FWIW the original post was correct, legacy automatically introspected the package to find |
This is sort of related to #790 and #3473, but different.
IIRC, if you uploaded a file to legacy PyPI that was built with no
long_description
provided tosetup()
, it would automatically search for/README.rst
and use its contents forlong_description
instead. I believe this is what happened for, e.g., v1.0 of mysphobjinv
package.However, when I recently uploaded a
.post1
release for that package, through Warehouse, it appears not to have auto-retrieved myREADME.rst
intolong_description
.This appears to have happened to others, too, up to and including Django. While they seem to have some formatting issues with their
README
in some releases (perhaps similar to, e.g., #2656?), v1.18.3, released in 2016, does display on Warehouse with along_description
, whereas the most recent version, v2.0.4, does not. For both releases,long_description
is not provided insetup.py
(v1.18.3 || v2.0.4).I'm personally agnostic as to whether or not Warehouse auto-retrieves
/README.rst
, but if the regression of the behavior is going to be permanent, it might be good to advertise it somewhere -- anyone used to the legacy behavior will probably get thrown off when suddenly their README content stops getting pulled intolong_description
.The text was updated successfully, but these errors were encountered: