Skip to content

Commit

Permalink
don't normalize already-normalized name
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Sep 25, 2022
1 parent 743e09c commit 2df6d0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/poetry/core/masonry/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@ class Metadata:

@classmethod
def from_package(cls, package: Package) -> Metadata:
from packaging.utils import canonicalize_name

from poetry.core.version.helpers import format_python_constraint

meta = cls()

meta.name = canonicalize_name(package.name)
meta.name = package.name
meta.version = package.version.to_string()
meta.summary = package.description
if package.readmes:
Expand Down

0 comments on commit 2df6d0c

Please sign in to comment.