Skip to content

fix: include Jinja2 templates in wheel via package-data#486

Merged
ko3n1g merged 1 commit intomainfrom
ko3n1g/build/dynamic-git-versioning
Apr 9, 2026
Merged

fix: include Jinja2 templates in wheel via package-data#486
ko3n1g merged 1 commit intomainfrom
ko3n1g/build/dynamic-git-versioning

Conversation

@ko3n1g
Copy link
Copy Markdown
Contributor

@ko3n1g ko3n1g commented Apr 9, 2026

Summary

  • The templates/ directories under nemo_run/core/execution/ and nemo_run/run/ray/ contain .j2 Jinja2 template files but no __init__.py, so setuptools packages.find was silently omitting them from the wheel
  • Added [tool.setuptools.package-data] with nemo_run = ["**/*.j2"] to ensure all Jinja2 templates are bundled

Test plan

  • Build the wheel and verify nemo_run/core/execution/templates/*.j2 and nemo_run/run/ray/templates/*.j2 are present inside it

🤖 Generated with Claude Code

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.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: oliver könig <okoenig@nvidia.com>
@ko3n1g ko3n1g force-pushed the ko3n1g/build/dynamic-git-versioning branch from dba33b1 to 8adb91d Compare April 9, 2026 23:19
@ko3n1g ko3n1g merged commit 1d8d5a6 into main Apr 9, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants