Skip to content
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

Split keywords in test support code #166

Merged
merged 2 commits into from
Jul 23, 2024
Merged

Split keywords in test support code #166

merged 2 commits into from
Jul 23, 2024

Conversation

diazona
Copy link
Owner

@diazona diazona commented Jul 23, 2024

Even though the core metadata allows multiple Keywords headers, in practice all a package's keywords seem to be combined into one header joined by commas, or maybe spaces for some older packages. This commit changes the test support code that parses core metadata to account for that by splitting the Keywords header (if single-valued). The delimiter is chosen based on the metadata version: in core metadata version 1.x, it allows spaces as a separator, but in version 2.x, it only allows commas.

Closes #136

diazona added 2 commits July 23, 2024 00:08
Even though the core metadata allows multiple Keywords headers, in
practice all a package's keywords seem to be combined into one header
joined by commas, or maybe spaces for some older packages. This commit
changes the test support code that parses core metadata to account for
that by splitting the Keywords header (if single-valued). The delimiter
is chosen based on the metadata version: in core metadata version 1.x,
it allows spaces as a separator, but in version 2.x, it only allows
commas.
@diazona diazona added this to the v0.3 milestone Jul 23, 2024
@diazona diazona requested a review from sjlongland July 23, 2024 07:10
@sjlongland sjlongland merged commit e4c0c84 into main Jul 23, 2024
12 checks passed
@sjlongland sjlongland deleted the keyword-split/1/dev branch July 23, 2024 20:36
@diazona diazona mentioned this pull request Jul 24, 2024
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.

Keywords not split by commas
2 participants