[BUG] Unexpected `*.dist-info/` directory under `dist/`
Hi, somebody's brought my attention to the fact that this PEP 517 build back-end seems to produce extra output under the dist/
directory. I haven't seen any other build back-ends behaving like this so I figured it's a bug.
It seems like this directory is simply forgotten on disk. Its copy could be easily extracted from the wheel via wheel unpack *.whl
if one needed to look inside. Thus, I don't see why it'd need to be kept on disk.
This currently creates problems for users seeking to upload packages to PyPI (or other indexes) via twine
and a GitHub Action that uses twine
under the hood. People are so used to just feeding a dist/
directory to twine
that it comes as a surprise when it crashes.
A quick search suggests that these lines are to blame: https://gitlab.com/thiblahute/mesonpep517/-/blob/fe3b0086/mesonpep517/buildapi.py#L648-650.
Refs: