8000 Ignore newlines when processing keywords/platforms by frenzymadness · Pull Request #347 · pypa/distutils · GitHub
[go: up one dir, main page]

Skip to content

Ignore newlines when processing keywords/platforms #347

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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-compat 8000 ible 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
0