Upgrading aiosmtplib 1 to 2
Breaking1.1.7 → 2.0.2Breaking2Platform1Changed2Fixed3Other3
BreakingUpgrade verdict
2 breaking changes and a platform requirement change.
In plain terms
- BREAKING: Remove deprecated loop keyword argument for the SMTP class.
- BREAKING: On connect, if the server supports STARTTLS, automatically try to upgrade the connection.
- BREAKING: Drop Python 3.5 and 3.6 support.
Must act 3 items need code or config changes
Python requirement changed in 2.0.0b0: >=3.5.2,<4.0.0 → >=3.7,<4.0.
What you must change
Breaking2
BREAKING: Remove deprecated loop keyword argument for the SMTP class.
loopBREAKING: On connect, if the server supports STARTTLS, automatically try to upgrade the connection.
start_tls=Truestart_tls=FalsePlatform1
BREAKING: Drop Python 3.5 and 3.6 support.