refactor(rename): rename import package from messaging to messagekit#1
Merged
Conversation
## Starting point: PEP 423 violation The library used `python-eventing` as distribution name but `messaging` as import package name. This violates PEP 423's recommendation that distribution and import names should match. The mismatch caused recurring confusion in documentation and onboarding. ## Changes ### Package rename - Renamed `src/messaging/` directory to `src/messagekit/` via git mv - Updated all Python imports across 146+ files in src/, tests/, scripts/ - Fixed @patch() string targets that reference module paths ### Distribution name (pyproject.toml) - `name = "python-eventing"` -> `name = "messagekit"` - `packages = [{include = "messaging"}]` -> `include = "messagekit"` - Updated `known_first_party` for deptry and isort - Updated all coverage threshold paths ### Configuration files - setup.cfg: all per-file-ignores paths - .importlinter: root_package and layer references - docs/source/conf.py: autoapi_dirs path - .vulture-whitelist.py: comment paths ### Documentation - README.md: install commands, import examples, naming explanation, comparison table, architecture diagrams - 12 docs/*.md files: import paths, file references, prose ## Result Distribution name and import name are now both `messagekit`, achieving PEP 423 compliance. All linters pass (ruff, mypy, lint-imports). Full test suite passes (228/228). GitHub URLs unchanged (repo rename separate).
748766b to
d4d366a
Compare
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
messagingtomessagekitand PyPI distribution frompython-eventingtomessagekitVerification
messagingreferences in .py filesNot modified (intentional)
.specstory/- dialogue historymemories/- AI lessonsmessagingreferences