From c6d4666bd583bbbf9490ecaca784edc9f1f09f96 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Tue, 12 May 2026 10:46:34 +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 risking exhaustion of PyPI's cumulative project size quota on beta releases. --- pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 88308271..2447bf6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,6 +93,16 @@ dev = [ [tool.hatch.build.targets.wheel] packages = ["src/apify"] +[tool.hatch.build.targets.sdist] +only-include = [ + "src/apify", + "CHANGELOG.md", + "CONTRIBUTING.md", + "LICENSE", + "README.md", + "pyproject.toml", +] + [tool.hatch.metadata] allow-direct-references = true