From 1882c0457dc42b0cddd94365d6502671483da975 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Tue, 12 May 2026 10:45:50 +0200 Subject: [PATCH] build: limit sdist contents to source and metadata files Mirrors apify/crawlee-python#1890. Without an explicit sdist target, hatchling bundles the whole repo, ballooning the released sdist and chewing through PyPI's cumulative project size quota on every beta release. --- pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 9bc09ee..c4c5c47 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,6 +56,16 @@ dev = [ "ty~=0.0.0", ] +[tool.hatch.build.targets.sdist] +only-include = [ + "src/apify_shared", + "CHANGELOG.md", + "CONTRIBUTING.md", + "LICENSE", + "README.md", + "pyproject.toml", +] + [tool.ruff] line-length = 120 include = ["src/**/*.py", "tests/**/*.py"]