Skip to content

fix: bundle static UI assets into wheel#396

Merged
manojbajaj95 merged 2 commits into
mainfrom
fix/wheel-bundle-ui-assets
Jun 9, 2026
Merged

fix: bundle static UI assets into wheel#396
manojbajaj95 merged 2 commits into
mainfrom
fix/wheel-bundle-ui-assets

Conversation

@manojbajaj95

Copy link
Copy Markdown
Collaborator

Summary

  • Hatchling respects .gitignore by default, so the generated src/authsome/ui/web/* assets were silently excluded from the published wheel (only the sdist had force-include wired up)
  • Adds [tool.hatch.build.targets.wheel.force-include] with the correct installed path (authsome/ui/web, without the src/ prefix that sdist uses)
  • Removes the .gitkeep placeholder — build-ui.sh already runs mkdir -p so no file is needed to keep the directory in git

Test plan

  • uv build --wheel succeeds locally after running scripts/build-ui.sh
  • Wheel contains authsome/ui/web/index.html and other static assets
  • CI publish job builds and uploads wheel with UI included

🤖 Generated with Claude Code

manojbajaj95 and others added 2 commits June 9, 2026 13:15
Hatchling respects .gitignore by default, so the generated
src/authsome/ui/web/* assets were excluded from the wheel even though
build-ui.sh populates them before uv build runs in CI.

- Add force-include for the wheel target (sdist already had this) with
  the correct installed path (authsome/ui/web, not src/authsome/ui/web)
- Remove .gitkeep — build-ui.sh's mkdir -p creates the directory;
  no placeholder needed
- Drop the .gitignore exception for .gitkeep

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
force-include errors during editable installs (uv pip install -e)
when src/authsome/ui/web doesn't exist on a fresh checkout, breaking
lint and test CI jobs. artifacts bypasses .gitignore for matched files
but silently skips missing paths, so editable installs succeed without
requiring build-ui.sh to have run first.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@manojbajaj95 manojbajaj95 merged commit 74be6b9 into main Jun 9, 2026
5 checks passed
@manojbajaj95 manojbajaj95 deleted the fix/wheel-bundle-ui-assets branch June 9, 2026 08:07
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