Skip to content

Commit 1d8d5a6

Browse files
ko3n1gclaude
andauthored
fix: include Jinja2 templates in wheel via package-data (#486)
The templates/ directories have no __init__.py so setuptools packages.find omits them. Add package-data glob to include all .j2 files under nemo_run. Signed-off-by: oliver könig <okoenig@nvidia.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ca9ecbd commit 1d8d5a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ build-backend = "setuptools.build_meta"
101101
[tool.setuptools.packages.find]
102102
include = ["nemo_run*"]
103103

104+
[tool.setuptools.package-data]
105+
nemo_run = ["**/*.j2"]
106+
104107
[tool.setuptools.dynamic]
105108
version = { attr = "nemo_run.package_info.__version__" }
106109

0 commit comments

Comments
 (0)