Skip to content

Commit d23b6d9

Browse files
chore(build): tighten sdist allowlist — drop .coverage, agent files, CI config (#62)
chore(build): tighten sdist allowlist — drop .coverage, agent files, CI config
2 parents 88cf241 + 01bcfdd commit d23b6d9

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ build/
1616
.mypy_cache/
1717
uv.lock
1818
.claude/
19+
.coverage
20+
coverage.xml
21+
htmlcov/
22+
AGENTS.md

pyproject.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,24 @@ build-backend = "hatchling.build"
5555
[tool.hatch.build.targets.wheel]
5656
packages = ["src/chat_sdk"]
5757

58+
# Explicit sdist allowlist — hatch's default pulls in every tracked and
59+
# untracked file in the repo, which has leaked `.coverage` (with local
60+
# absolute paths), agent scratchpads, CI config, and dev scripts to PyPI.
61+
# Everything here is what a source-install consumer needs; anything else
62+
# (CI, dev scripts, local notes) stays out.
63+
[tool.hatch.build.targets.sdist]
64+
include = [
65+
"/src",
66+
"/tests",
67+
"/docs",
68+
"/scripts",
69+
"/README.md",
70+
"/LICENSE",
71+
"/CHANGELOG.md",
72+
"/CONTRIBUTING.md",
73+
"/pyproject.toml",
74+
]
75+
5876
[tool.pytest.ini_options]
5977
asyncio_mode = "auto"
6078

0 commit comments

Comments
 (0)