Skip to content

Commit

Permalink
fix: Add importlib-metadata constraint to avoid celery import bug (#90)
Browse files Browse the repository at this point in the history
* Fix requires a new release of kombu
   - c.f. celery/celery#7783 (comment)
   - This should be viewed as temporary. As soon as there is a new release of kombu
     the release with this fix in in should get yanked in favor of a new release
     without this restriction.
* Add lower bound of celery>=5.0.0.
  • Loading branch information
matthewfeickert committed Feb 9, 2023
1 parent b54327e commit e4b202d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@
python_requires=">=3.7",
include_package_data=True,
install_requires=deps,
extras_require={"celery": ["celery", "redis"]},
extras_require={
"celery": [
"celery>=5.0.0",
"redis",
"importlib-metadata<5.0.0; python_version < '3.8'", # FIXME: c.f. https://github.com/celery/celery/issues/7783
]
},
entry_points={
"console_scripts": [
"packtivity-run=packtivity.cli:runcli",
Expand Down

0 comments on commit e4b202d

Please sign in to comment.