From 743c76bde9920df2a01f4a5a63a4b25bae2fe014 Mon Sep 17 00:00:00 2001 From: Rohith Krishna Date: Fri, 5 Jun 2026 15:38:36 -0700 Subject: [PATCH] build: exclude tests, doc assets, and binary media from sdist The sdist for v0.2.0 ballooned to 145 MB (vs 23 MB at v0.1.10) due to new rfd3na regression fixtures and tutorial assets, exceeding PyPI's per-file limit. Excluding test data and large doc media brings the sdist to ~17 MB. The wheel is unaffected (it only packages src/ and configs/, none of which match these excludes). Co-Authored-By: Claude Opus 4.7 --- pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 749e255c..c68f4900 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -129,6 +129,16 @@ packages = [ "models/rfd3/configs" = "rfd3/configs" "models/rf3/configs" = "rf3/configs" +[tool.hatch.build.targets.sdist] +exclude = [ + "models/*/tests/", + "models/*/docs/.assets/", + "docs/source/models/*/.assets/", + "**/*.pse", + "**/*.mp4", + "**/*.gif", +] + # Formatting & linting settings ------------------------------------------------------- [tool.ruff] line-length = 88