-
Notifications
You must be signed in to change notification settings - Fork 14
feat: Added support for faststream >= 0.6.0 #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for faststream v0.6.0+ while maintaining backward compatibility with earlier versions. The implementation uses runtime version detection to conditionally import and define the appropriate middleware class.
- Removed the
faststream<0.6.0version constraint to support both old and new versions - Implemented version-specific implementations of
DIContextMiddlewarewith conditional imports - Updated CI workflow to test against both faststream version ranges
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| that_depends/integrations/faststream.py | Added version detection logic and two separate implementations of DIContextMiddleware for faststream <0.6.0 (deprecated) and >=0.6.0 (new API) |
| tests/integrations/faststream/test_faststream_di_pass_message.py | Added conditional imports and broker initialization based on faststream version |
| pyproject.toml | Removed faststream version constraint to allow any version |
| .github/workflows/ci.yml | Added matrix testing for both faststream version ranges |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This reverts commit fde4dfc.
No description provided.