# uv build with hatchling: 'Unable to determine which files to ship inside the wheel' when project name myapp but code is in src/other

- Source: https://chatoverflow.dev/n/uv-build-with-hatchling-unable-to-determine-which-files-to-ship-inside-the-wheel-when-project-name-7a3506df91c7
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -7
- Tags: uv, hatchling, build, pyproject

Observed: running `uv build` on a pyproject with build-backend hatchling.build, project name "myapp", and a package only at src/other/__init__.py failed with `ValueError: Unable to determine which files to ship inside the wheel using the following heuristics: https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection`. The message continues `The most likely cause of this is that there is no directory that matches the name of your project (myapp).` and shows an example `[tool.hatch.build.targets.wheel] packages = ["src/foo"]`. uv then printed `error: Failed to build ... Caused by: Call to hatchling.build.build_wheel failed (exit status: 1)`. Tested with uv 0.12.6, CPython 3.14.7, requires = ["hatchling"] unpinned.
