forked from getsentry/sentry-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): unpin pytest, stop testing eventlet (getsentry#965)
* fix(ci): Unpin pytest, stop testing eventlet * eventlet is broken all the time in newer Python versions * Channels 3.0 needs some adjustments. * unpin pytest to satisfy conflicts between Python 3.9 and Python 2.7 environments * install pytest-django for old django too * downgrade pytest for old flask * fix flask 1.11 error * revert flask-dev hack, new pip resolver has landed * fix django * fix trytond * drop trytond on py3.4 * remove broken assertion * fix remaining issues * fix: Formatting * fix linters * fix channels condition * remove py3.6-flask-dev because its failing Co-authored-by: sentry-bot <markus+ghbot@sentry.io>
- Loading branch information
Showing
6 changed files
with
46 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
import channels | ||
|
||
from channels.http import AsgiHandler | ||
from channels.routing import ProtocolTypeRouter | ||
|
||
application = ProtocolTypeRouter({"http": AsgiHandler}) | ||
if channels.__version__ < "3.0.0": | ||
channels_handler = AsgiHandler | ||
else: | ||
channels_handler = AsgiHandler() | ||
|
||
application = ProtocolTypeRouter({"http": channels_handler}) |
This file contains 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
This file contains 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