Skip to content

Fix: include static assets in package distribution#91

Open
simgunz wants to merge 1 commit intoawslabs:devfrom
simgunz:fix/include-static-assets-in-package
Open

Fix: include static assets in package distribution#91
simgunz wants to merge 1 commit intoawslabs:devfrom
simgunz:fix/include-static-assets-in-package

Conversation

@simgunz
Copy link

@simgunz simgunz commented Mar 17, 2026

The HTML reporter relies on styling/style.css and interactive/main.js at runtime, but setuptools only packages .py files by default. When installed from PyPI, these files are missing, causing _get_basic_css() to return None and rendering the HTML report without any styling.

  • Add [tool.setuptools.package-data] to pyproject.toml to explicitly include .css and .js files

Current rendering with the problem:
Screenshot_20260317_124357

The HTML report styling and interactive JS files were not included
in the built wheel because setuptools only packages .py files by
default. This resulted in unstyled HTML reports when installed from
PyPI.
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.

1 participant