Skip to content

fix: include templates directory in package - #61

Merged
robcohen merged 2 commits into
mainfrom
fix/include-templates
Feb 5, 2026
Merged

robcohen merged 2 commits into
mainfrom
fix/include-templates

Conversation

@robcohen

@robcohen robcohen commented Feb 5, 2026

Copy link
Copy Markdown
Member

Summary

The templates directory was missing from MANIFEST.in, causing TemplateNotFound errors when running from the pip-installed package or Docker container.

Problem

When launching rustfava via Docker:

docker run -p 5000:5000 --platform linux/amd64 -v $PWD/data:/data ghcr.io/rustledger/rustfava /data/ledger.beancount

Users get:

jinja2.exceptions.TemplateNotFound: _layout.html

Root Cause

MANIFEST.in includes graft src/rustfava/static but was missing graft src/rustfava/templates.

Fix

Add graft src/rustfava/templates to MANIFEST.in.

Fixes rustledger/rustledger#300

🤖 Generated with Claude Code

The templates directory was missing from MANIFEST.in, causing
TemplateNotFound errors when running from pip-installed package
or Docker container.

Fixes rustledger/rustledger#300

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@robcohen
robcohen enabled auto-merge (squash) February 5, 2026 02:23
@robcohen
robcohen merged commit 9d2c75f into main Feb 5, 2026
22 checks passed
@robcohen
robcohen deleted the fix/include-templates branch February 5, 2026 02:26
robcohen added a commit that referenced this pull request Feb 5, 2026
MANIFEST.in only affects source distributions. For wheel builds,
setuptools needs include-package-data = true to include non-Python
files like templates and static assets.

This fixes the Docker image not having templates even after #61.

Fixes rustledger/rustledger#300

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
robcohen added a commit that referenced this pull request Feb 5, 2026
MANIFEST.in only affects source distributions. For wheel builds,
setuptools needs include-package-data = true to include non-Python
files like templates and static assets.

This fixes the Docker image not having templates even after #61.

Fixes rustledger/rustledger#300

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <[email protected]>
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.

[Bug]: can't launch fava

1 participant