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.