Skip to content

Poetry doesn't correctly normalise the package name for the wheel data section #7117

@robtaylor

Description

@robtaylor
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

When building a wheel, the name of the data section should be {distribution}-{version}.data, where {distribution} is the PEP 503 normalisation followed by replacing - with _.

See Binary distribution format

Currently the data section is using _package.name rather than distribution_version(_package.name) (https://github.com/python-poetry/poetry-core/blob/d98aa6e49f614f7631667da3144d7b291c7e7889/src/poetry/core/masonry/builders/wheel.py#L310)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/build-systemRelated to PEP 517 packaging (see poetry-core)kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions