From c560f9223bacd760791455715abb8f2afd19331b Mon Sep 17 00:00:00 2001 From: James Robinson Date: Tue, 28 Jan 2025 12:39:04 +0000 Subject: [PATCH] :wrench: Exclude non-package files from hatch build --- pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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"]