-
Notifications
You must be signed in to change notification settings - Fork 1k
Missing long_description sometimes results in "UNKNOWN" project description on Warehouse #3473
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
Sounds like a bug in the stripping of |
pypa/readme_renderer#69 will help with this once it's merged/released. |
This looks like a duplicate of (or related to) #69. |
@anowlcalledjosh How did you generate the wheel for this release? It's a little weird because it contains a description with extra newlines at the end:
which is throwing off this check: https://github.com/pypa/warehouse/blob/090c9c9f59941d819092d3f8ca555dc01400b452/warehouse/forklift/legacy.py#L721-L726 |
@di That particular release was with an almost empty setup.py (and no setup.cfg). I reproduced it with the following package versions:
and a setup.py that looks like this: from setuptools import setup
setup(
name="some-test",
version="0.0.1",
) and the command (With wheel 0.31.0, the DESCRIPTION.rst file is not generated any more, but METADATA still ends with a couple of blank lines.) If I specify a single-line long_description in setup.py, the generated description still ends with two blank lines; however, giving a longer long_description, for example: long_description="""foo bar
this is a test
it has multiple lines""" results in only a single trailing blank line:
|
Some packages get a nice banner when there's no long_description (example):
but some just get "UNKNOWN" (example on testPyPI):
The package with the banner only has an sdist, the one with
UNKNOWN
has both an sdist and a wheel, and the wheel was uploaded first. Both were uploaded within the last couple of days.The text was updated successfully, but these errors were encountered: