diff --git a/src/pdm/backend/config.py b/src/pdm/backend/config.py index 8c6119f..09cbe65 100644 --- a/src/pdm/backend/config.py +++ b/src/pdm/backend/config.py @@ -52,6 +52,8 @@ def __init__(self, root: Path, data: dict[str, Any]) -> None: def to_coremetadata(self) -> str: """Return the metadata as a Core Metadata string.""" metadata = StandardMetadata.from_pyproject(self.data, project_dir=self.root) + # Fix the name field to unnormalized form. + metadata.name = self.metadata["name"] return str(metadata.as_rfc822()) @classmethod