Include PNG assets in package distribution#530
Merged
Conversation
The DRAWING_SUCCESS.png asset was present in the source tree but missing from installed packages because pyproject.toml lacked package-data configuration. Setuptools only includes .py files by default. https://claude.ai/code/session_01HWtfixTiB4NgTDZA4XLEQ4
jmtts
approved these changes
May 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change ensures that PNG asset files are included in the distributed Python package by configuring setuptools package data.
Key Changes
[tool.setuptools.package-data]configuration topyproject.tomlassets/directory should be included in thewerk24package distributionImplementation Details
The configuration uses setuptools' package-data mechanism to explicitly declare that
*.pngfiles from theassets/directory are data files that should be packaged with thewerk24module. This ensures these assets are available when the package is installed via pip or other package managers, rather than only being present in the source repository.https://claude.ai/code/session_01HWtfixTiB4NgTDZA4XLEQ4