Skip to content

Commit 3019e60

Browse files
authored
Restrict sdist to package contents; ignore local tool config; 0.2.2 (#22)
The sdist now ships only the package, tests, and metadata (hatchling only-include) instead of the full project tree. Signed-off-by: Kovács Ádám <adaam.ko@gmail.com>
1 parent 6d7a8a8 commit 3019e60

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,6 @@ rules_*.html
234234

235235
savings_report.html
236236
savings*.html
237+
238+
# Local tool configuration
239+
.claude/

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "rulechef"
7-
version = "0.2.1"
7+
version = "0.2.2"
88
description = "Learn rule-based models from examples and LLM interactions"
99
requires-python = ">=3.10"
1010
readme = {file = "README.md", content-type = "text/markdown"}
@@ -84,6 +84,10 @@ rulechef = "rulechef.cli:main"
8484
rulechef-report = "rulechef.report:main"
8585
rulechef-savings = "rulechef.savings:main"
8686

87+
[tool.hatch.build.targets.sdist]
88+
# Ship only the package and its metadata in the sdist.
89+
only-include = ["rulechef", "tests", "README.md", "LICENSE", "pyproject.toml"]
90+
8791
[tool.hatch.build.targets.wheel]
8892
packages = ["rulechef"]
8993

0 commit comments

Comments
 (0)