Skip to content

fix: enable include-package-data for wheel builds - #63

Merged
robcohen merged 1 commit into
mainfrom
fix/include-package-data
Feb 5, 2026
Merged

robcohen merged 1 commit into
mainfrom
fix/include-package-data

Conversation

@robcohen

@robcohen robcohen commented Feb 5, 2026

Copy link
Copy Markdown
Member

Summary

MANIFEST.in only affects source distributions (sdist). For wheel builds, setuptools needs include-package-data = true to include non-Python files like templates and static assets.

Problem

Even after #61 added templates to MANIFEST.in, the Docker image still didn't have templates because:

  1. Docker builds from source using pip install .
  2. This creates a wheel, which doesn't use MANIFEST.in
  3. Without include-package-data = true, setuptools doesn't include templates in the wheel

Fix

Add [tool.setuptools] section with include-package-data = true to pyproject.toml.

Testing

Verified templates are now included when building without .git (simulating Docker build):

=== Checking installed templates ===
-rw-r--r--  _layout.html
-rw-r--r--  _journal_table.html
-rw-r--r--  _query_table.html
...

Fixes rustledger/rustledger#300

🤖 Generated with Claude Code

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
robcohen enabled auto-merge (squash) February 5, 2026 13:50
@robcohen
robcohen merged commit 2516015 into main Feb 5, 2026
22 checks passed
@robcohen
robcohen deleted the fix/include-package-data branch February 5, 2026 13:51
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