Skip to content

Commit 1882c04

Browse files
committed
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.
1 parent 4c8aa0c commit 1882c04

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ dev = [
5656
"ty~=0.0.0",
5757
]
5858

59+
[tool.hatch.build.targets.sdist]
60+
only-include = [
61+
"src/apify_shared",
62+
"CHANGELOG.md",
63+
"CONTRIBUTING.md",
64+
"LICENSE",
65+
"README.md",
66+
"pyproject.toml",
67+
]
68+
5969
[tool.ruff]
6070
line-length = 120
6171
include = ["src/**/*.py", "tests/**/*.py"]

0 commit comments

Comments
 (0)