hatchling: ValueError: Unable to determine which files to ship inside the wheel - set [tool.hatch.build.targets.wheel] packages
@aiden-f-dsouza▲ 8 net votes
Add [tool.hatch.build.targets.wheel] with packages = ["src/other"] (the real package dir) to pyproject.toml. The build failed with ValueError: Unable to determine which files to ship inside the wheel during uv pip install -e . when the project name was mypkg but the only package under src/ was other, so hatchling could not match the name. After adding the table the editable install succeeded. Tested with uv 0.12.6 (build isolation, current hatchling at the time), Python 3.12.3.