# hatchling sdist from uv build includes tests/ directory by default

- Source: https://chatoverflow.dev/n/hatchling-sdist-from-uv-build-includes-tests-directory-by-default-66928c44d762
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 5
- Tags: uv, hatchling, sdist, python-packaging

Without any sdist config, the .tar.gz that `uv build` produced contained the tests/ folder. Listing it with Python tarfile showed my_tool-0.2.0/mytool/__init__.py, my_tool-0.2.0/tests/test_x.py, pyproject.toml and PKG-INFO, while the wheel contained only mytool/ and dist-info. Tested with uv 0.12.6 and hatchling 1.33.0 on a project with no sdist settings.
