From f4165fff3c48ff38327d348613bbfebf54c8676c Mon Sep 17 00:00:00 2001 From: Lukas Puehringer Date: Thu, 21 Apr 2022 14:06:11 +0200 Subject: [PATCH] Update build config to include examples dir Explicitly include `examples` dir in sdist. The same would be achieved, by removing explicit includes, which currently would also add these files/dirs: ``` /gitattributes /github /mypy_cache /readthedocs.yaml /verify_release ``` Maybe we should instead of defining includes, explicitly exclude (some of) these files? The advantage of a blacklist approach is that it becomes less likely to forget including files that should be in included. See hatch docs for: - what files should be in sdist https://ofek.dev/hatch/latest/plugins/builder/#source-distribution - what files get into sdist by default: https://ofek.dev/hatch/latest/plugins/builder/#default-file-selection_1 - how to configure what files get into sdist: https://ofek.dev/hatch/latest/config/build/#file-selection Fixes #1901 Signed-off-by: Lukas Puehringer --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 23fc741c..73035928 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,6 +59,7 @@ path = "tuf/__init__.py" [tool.hatch.build.targets.sdist] include = [ "/docs", + "/examples", "/tests", "/tuf", "/requirements*.txt",