micro-fix: add module entrypoint for python -m core #4238
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.
Description
This PR fixes an issue where running Hive as a module via
python -m corefails because the package does not define acore.__main__entrypoint.It adds a
core/__main__.pyfile that forwards execution to the existing Hive CLI while ensuring the internalframeworkpackage can be resolved at runtime.This enables the standard Python module execution pattern and improves developer experience and CLI consistency.
Type of Change
Related Issues
Fixes #4325
Changes Made
core/__main__.pyto enable execution viapython -m corecore/intosys.pathso theframeworkpackage resolves correctlyTesting
Describe the tests you ran to verify your changes:
Manual testing performed:
Verified
uv run python -m core --helpnow displays CLI help outputConfirmed previous error (
No module named core.__main__) is resolvedUnit tests pass (
cd core && pytest tests/)Lint passes (
cd core && ruff check .)[X ] Manual testing performed
Checklist
Screenshots (if applicable)
Add screenshots to demonstrate UI changes.