-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
bugSomething isn't workingSomething isn't workingcompatibilityCompatibility with a specification or another toolCompatibility with a specification or another tool
Description
Summary
The matching of Dynamic fields in parse_pkg_info is case-sensitive. However, while debugging an unrelated issue I found PKG-INFO files which contained lines such as Dynamic: requires-python. This would not be detected by the current code and lead to false negatives.
uv/crates/uv-pypi-types/src/metadata/metadata_resolver.rs
Lines 114 to 122 in 685a798
| for field in headers.get_all_values("Dynamic") { | |
| match field.as_str() { | |
| "Requires-Python" => return Err(MetadataError::DynamicField("Requires-Python")), | |
| "Requires-Dist" => return Err(MetadataError::DynamicField("Requires-Dist")), | |
| "Provides-Extra" => return Err(MetadataError::DynamicField("Provides-Extra")), | |
| "Version" => dynamic = true, | |
| _ => (), | |
| } | |
| } |
Platform
Fedora 43
Version
uv 0.10.9
Python version
Python 3.14.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompatibilityCompatibility with a specification or another toolCompatibility with a specification or another tool