diff --git a/src/poetry/core/masonry/metadata.py b/src/poetry/core/masonry/metadata.py index d34d8f664..ecee44639 100644 --- a/src/poetry/core/masonry/metadata.py +++ b/src/poetry/core/masonry/metadata.py @@ -14,7 +14,7 @@ class Metadata: metadata_version = "2.1" # version 1.0 - name: NormalizedName | None = None + name: str | None = None version: str platforms: tuple[str, ...] = () supported_platforms: tuple[str, ...] = () @@ -51,7 +51,7 @@ def from_package(cls, package: Package) -> Metadata: meta = cls() - meta.name = package.name + meta.name = package.pretty_name meta.version = package.version.to_string() meta.summary = package.description if package.readmes: