Skip to content

Treat 'Dynamic' values as case-insensitive#18669

Merged
charliermarsh merged 1 commit intomainfrom
charlie/low
Mar 23, 2026
Merged

Treat 'Dynamic' values as case-insensitive#18669
charliermarsh merged 1 commit intomainfrom
charlie/low

Conversation

@charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Mar 23, 2026

Summary

Follows the convention used by, e.g., packaging.

Closes #18667.

@charliermarsh charliermarsh added bug Something isn't working compatibility Compatibility with a specification or another tool labels Mar 23, 2026
@charliermarsh charliermarsh marked this pull request as ready for review March 23, 2026 14:48
"Provides-Extra" => return Err(MetadataError::DynamicField("Provides-Extra")),
"Version" => dynamic = true,
_ => (),
let field = field.as_str();

This comment was marked as off-topic.

Copy link
Member

@konstin konstin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the absence of a precise definition, the practical standard is set by what the standard library email.parser module can parse using the compat32 policy.

Yeah let's go with what packaging does.

@charliermarsh charliermarsh merged commit d0f2f3b into main Mar 23, 2026
55 checks passed
@charliermarsh charliermarsh deleted the charlie/low branch March 23, 2026 16:31
zsol added a commit that referenced this pull request Mar 24, 2026
zanieb pushed a commit that referenced this pull request Mar 24, 2026
#18669 is the cause of #18690. This PR reverts #18669 to address the
regression.
konstin pushed a commit that referenced this pull request Mar 24, 2026
#18669 is the cause of #18690. This PR reverts #18669 to address the
regression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working compatibility Compatibility with a specification or another tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parsing of Dynamic: field in PKG-INFO should be case insensitive

4 participants