Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Possible to create a corrupt wheel using force-include #2066

@pfmoore

Description

@pfmoore

If I include the following in my pyproject.toml:

[tool.hatch.build.targets.wheel.force-include]
"my_datafile" = "bla_pkg-0.1.0.dist-info/METADATA"

hatchling will create two metadata files in the wheel, one of which is the "correct" one, and the other is the content of my_datafile. This is clearly a corrupt wheel, and should be prevented at build time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions