You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(rename): rename import package from messaging to messagekit
## 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).
Services should consume the published package rather than source checkout. Kafka remains shared infrastructure with local producer/consumer clients per service.
0 commit comments