-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Commit 61df0e2f5e90 introduced a requirement for asgiref 3.6.0+ #1255
Comments
As far as I've understood, we only use Because of this, I'm not entirely sure why not adding |
Not all supported versions of Django require asgiref 3.6.0. As an obvious example, Django 3.2 requires asgiref 3.3.2: https://github.com/django/django/blob/3.2.21/setup.cfg#L45 The problem could also be solved by directly requiring Django 4.2, but that doesn't sound right to me. |
See #1255 for discussion. Link to Django 4.1's required `asgiref` version: https://github.com/django/django/blob/4.1.11/setup.cfg#L42 Link to Django 4.2's required `asgiref` version: https://github.com/django/django/blob/4.2/setup.cfg#L42
Ah, I missed your point above that I can see from the CI test logs for the commit you mentioned that |
I opened #1261 to implement the versioned requirement you mentioned initially. |
See #1255 for discussion. Link to Django 4.1's required `asgiref` version: https://github.com/django/django/blob/4.1.11/setup.cfg#L42 Link to Django 4.2's required `asgiref` version: https://github.com/django/django/blob/4.2/setup.cfg#L42
django-simple-history introduced a dependency on asgiref>=3.6 but didn't include it in their requirements. Add this dependency at least until we upgrade to Django 4.2. See issue: jazzband/django-simple-history#1255
In commit 61df0e2 the middleware started using function
iscoroutinefunction
fromasgiref.sync
. This function is introduced in version 3.6.0.It seems that this commit also introduced a hard dependency on asgiref which previously didn't exist (the use in models.py is conditional).
The easy fix is to add a versioned requirement for asgiref.
The text was updated successfully, but these errors were encountered: