-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Dependencies won't install if description contains new lines #3610
Comments
This should be only one line: |
That is fine, if it should be only one line. But Poetry should refuse to build a corrupted package if given summary is not one line. At least, it should strip summary new line is only at the end of string. |
agreed |
After releasing spinta 0.1.7, I found, that it won't install any dependencies. After quite lengthy debugging I found, that is is caused by description having a new line. Failed a bug report for Poetry: python-poetry/poetry#3610
This has been addressed before in #1372 It seems that this is an edge case where 'multiline' strings that are actually a single line aren't caught. For example, this fails as expected with a validation error: description = """\
Multiple
line
description
""" But any string with a single trailing newline is still allowed, resulting in an invalid |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
When I create
pyproject.toml
file, that looks like this:(Note the new line in the description). Then, when I
poetry build
it, and try to install wheel package, it won't install any dependencies, in this case it won't installrequests
.But if I replace description to:
Then dependencies are installed as expected.
I think, the issue is that when
.dist-info/METADATA
file is generated, it creates an empty line like this:After this new line, after
Summary
, everything else is treated as package description, I guess.The text was updated successfully, but these errors were encountered: