Skip to content

Commit ee8cd2d

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 risking exhaustion of PyPI's cumulative project size quota on beta releases.
1 parent 6624ae4 commit ee8cd2d

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
@@ -68,6 +68,16 @@ dev = [
6868
[tool.hatch.build.targets.wheel]
6969
packages = ["src/apify_client"]
7070

71+
[tool.hatch.build.targets.sdist]
72+
only-include = [
73+
"src/apify_client",
74+
"CHANGELOG.md",
75+
"CONTRIBUTING.md",
76+
"LICENSE",
77+
"README.md",
78+
"pyproject.toml",
79+
]
80+
7181
[tool.ruff]
7282
line-length = 120
7383
include = [

0 commit comments

Comments
 (0)