diff --git a/pyproject.toml b/pyproject.toml index 2102560512..145a267804 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,6 +111,16 @@ omit= [ "data_safe_haven/resources/*", ] +[tool.hatch.build.targets.sdist] +exclude = [ + "docs/", # documentation source + "tests/", # package tests + "typings/", # mypy configuration + ".*", # configuration dotfiles + "CODEOWNERS", # GitHub configuration + "*.md", # GitHub configuration +] + [tool.hatch.env] requires = ["hatch-pip-compile"]