Skip to content

Conversation

@frenzymadness
Copy link

Newlines in keywords or platforms can break
the produced metadata in PKG-INFO or METADATA files.

Fixes: pypa/setuptools#4887

Another possibility is to raise an error if keywords or platforms contain newlines but this fix is simple and backward-compatible and does not break projects that have multiline definitions of those attributes.

Newlines in `keywords` or `platforms` can break
the produced metadata in PKG-INFO or METADATA files.

Fixes: pypa/setuptools#4887
@jaraco
Copy link
Member

jaraco commented May 4, 2025

Thanks for this proposal. My instinct is it would be better to guide users toward one best format, preferably something with proper syntax support, i.e. a full sequence of values, whether in Python or toml. What do you think about instead deprecating anything but sequence[str] for keywords & platforms?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] multiline keywords breaks metadata file

2 participants