From 53d17c026aecab71679d30aaf53f78d1c1f4988e Mon Sep 17 00:00:00 2001 From: jahuang Date: Tue, 5 May 2026 09:17:25 -0700 Subject: [PATCH] build: Exclude dev files from PyPI source distribution Add sdist exclusions to prevent development artifacts from being included in the PyPI source distribution tarball. Excludes CI configs, examples, dev tools, and internal documentation while keeping the wheel distribution minimal with only runtime code. Co-Authored-By: Claude Sonnet 4.5 --- pyproject.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b05b926..b4e34f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,6 +66,22 @@ build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["src/tac"] +[tool.hatch.build.targets.sdist] +exclude = [ + "/.github", + "/.venv", + "/.claude", + "/__pycache__", + "*.pyc", + ".DS_Store", + "CLAUDE.md", + "/getting_started", + "/.pre-commit-config.yaml", + "/Makefile", + "/logo.svg", + "/uv.lock", +] + [tool.ruff] line-length = 100 target-version = "py310"