twilio / twilio-python

A Python module for communicating with the Twilio API and generating TwiML.
MIT License
1.85k stars 711 forks source link

Extra dependency `asyncio` included #708

Closed setu4993 closed 1 year ago

setu4993 commented 1 year ago

asyncio is a dependency only for upto Python 3.4. Since the versions of Python supported are 3.7+, it doesn't seem to be required, but is included.

This is causing issues with running pip check in https://github.com/conda-forge/twilio-feedstock/pull/94, which I help maintain.

Technical details:

nelsonlazar commented 1 year ago

asyncio has broken our Serverless Lambda function(Python v3.8):

[ERROR] SyntaxError: invalid syntax (base_events.py, line 296) ... File "/var/task/django/utils/deprecation.py", line 1, in import asyncio File "/var/task/asyncio/init.py", line 21, in from .base_events import *

As a workaround fixed using version lock with previous version of Twilio

kridai commented 1 year ago

Thanks for the PR. The changes have been merged, and would reflect in the next twilio-python release.