aiosmtpd icon indicating copy to clipboard operation
aiosmtpd copied to clipboard

smtpd may be removed from the Python 3.11 standard library

Open vstinner opened this issue 2 years ago • 8 comments

FYI I plan to remove the smtpd module from the Python 3.11 standard library. In my change, I suggest to replace smtpd with aiosmtpd ;-)

  • https://bugs.python.org/issue28533
  • https://mail.python.org/archives/list/[email protected]/thread/LZOOLX5EKOITW55TW7JQYKLXJUPCAJB4/

vstinner avatar Nov 11 '21 12:11 vstinner

@vstinner Luckily removal was not approved as aiosmtpd is not yet ported even to Python 3.10. In current situation removal of smtpd would remove important functionality from Python without any replacement.

Karlson2k avatar Feb 15 '22 12:02 Karlson2k

The removal will likely happen in Python 3.12.

vstinner avatar Feb 21 '22 17:02 vstinner

So SMTP server functionality is planned to be removed from Python without any replacement?

Karlson2k avatar Feb 21 '22 21:02 Karlson2k

I guess we should start getting aiosmtpd working well under more modern Python 😅

waynew avatar Feb 21 '22 21:02 waynew

So SMTP server functionality is planned to be removed from Python without any replacement?

One replacement is aiosmtpd, but there are other SMTP servers implemented in Python or not ;-)

vstinner avatar Feb 21 '22 21:02 vstinner

I guess we should start getting aiosmtpd working well under more modern Python 😅

@waynew This would be nice. Some distributions will switch soon to Python 3.10 and we will lost SMTP server functionality.

Karlson2k avatar Feb 22 '22 15:02 Karlson2k

Anyway, there is still a lot of work to be done before replacing smtpd.

wevsty avatar Jun 13 '22 15:06 wevsty

There is no single commit in aiosmtpd repo for more than last 14 months. Chances that compatibility will be checked (and fixed) before Python 3.11 release are quite low.

Karlson2k avatar Jun 13 '22 15:06 Karlson2k

There is no single commit in aiosmtpd repo for more than last 14 months. Chances that compatibility will be checked (and fixed) before Python 3.11 release are quite low.

Just for an update:

PR #309 and PR #314 enables testing to run successfully on 3.10 and 3.11 after some fixing of GitHub CI in PR #324

The results of latest tests by GitHub CI are all green as can be seen here, here, and here.

I think those are enough to verify compatibility with Python 3.11.

Besides, Python 3.11 is released anyways, so I think I'll close this issue because it's no longer relevant.

(Still relevant if we're talking about taking out smtpd in Python 3.12, but let's start a new Issue)

pepoluan avatar Dec 16 '22 06:12 pepoluan