Skip to content

Fix v0.3.0 package build configuration - #526

Merged
tombedor merged 1 commit into
mainfrom
fix/v0.3.0-package-build
Jan 26, 2026
Merged

Fix v0.3.0 package build configuration#526
tombedor merged 1 commit into
mainfrom
fix/v0.3.0-package-build

Conversation

@tombedor

Copy link
Copy Markdown
Collaborator

Fixes the broken package build that was causing ModuleNotFoundError in the release CI.

Root Cause

The hatch build configuration added in v0.3.0 used packages = ["elroy"] which put hatch into explicit mode but didn't properly configure the package path. This prevented auto-discovery of the elroy package directory, resulting in wheels that contained only metadata without the actual Python code.

Solution

  • Remove the explicit packages directive to restore hatch's default auto-discovery
  • Use force-include to add the claude-skills directory

This restores the working behavior from v0.2.0 while maintaining claude-skills inclusion.

Testing

  • Built and tested package locally
  • Verified wheel contains both elroy package and claude-skills directory
  • Tested installation in fresh venv and confirmed import works correctly

The hatch build configuration added in v0.3.0 was breaking package
discovery, resulting in wheels that contained only metadata without
the actual elroy Python code.

Root cause: Using packages = ["elroy"] in [tool.hatch.build.targets.wheel]
put hatch into explicit mode but didn't properly configure the package
path, preventing auto-discovery of the elroy package directory.

Fix: Remove the explicit packages directive to restore hatch's default
auto-discovery behavior, and use force-include instead to add the
claude-skills directory.

This restores the working behavior from v0.2.0 while maintaining the
claude-skills inclusion needed for v0.3.0's Claude Code integration.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@tombedor
tombedor merged commit c043305 into main Jan 26, 2026
1 check passed
@tombedor
tombedor deleted the fix/v0.3.0-package-build branch January 26, 2026 18:58
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