Skip to content

Commit

Permalink
fix: pdm-backend should not normalize names in project metadata (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Jun 26, 2023
1 parent ad4087c commit 4476f86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pdm/backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4476f86

Please sign in to comment.