Repository navigation
Declare packaging as a runtime dependency - #805
Merged
wbarnha merged 1 commit intoNov 28, 2026
Merged
Conversation
faust/transport/drivers/aiokafka.py imports packaging.version at module level, but packaging was only listed in requirements/dist.txt. It was installed anyway because aiokafka depended on it, until aiokafka 0.15.0 dropped it. A clean install with aiokafka 0.15.0 now fails to import the Kafka transport with ModuleNotFoundError. Fixes faust-streaming#804
Member
|
Thank you for the PR! I'll get this merged and shipped ASAP |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #805 +/- ##
=======================================
Coverage 96.19% 96.19%
=======================================
Files 110 110
Lines 11789 11789
Branches 1282 1282
=======================================
Hits 11341 11341
Misses 351 351
Partials 97 97 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Description
Fixes #804.
faust/transport/drivers/aiokafka.pydoesfrom packaging.version import Versionat import time, butpackagingis only listed inrequirements/dist.txt, so it isn't in the published dependencies. It worked because aiokafka used to pull it in. aiokafka 0.15.0 dropped that dependency, so a cleanpip install faust-streaming aiokafka==0.15.0can't import the Kafka transport:This adds
packaging>=20.0torequirements/requirements.txt(it's only used forVersion(...)comparisons, so any reasonably recent release works).Checked in a fresh venv: installing from master with
aiokafka==0.15.0and nopackagingreproduces the error above; with this changepip install .brings inpackagingandimport faust.transport.drivers.aiokafkasucceeds.