pyudev / pyudev

Python bindings to libudev (with support for PyQt4, PySide, pygobject and wx)
http://pyudev.readthedocs.org
GNU Lesser General Public License v2.1
167 stars 50 forks source link

Drop Python 2 #380

Open FFY00 opened 5 years ago

FFY00 commented 5 years ago

Python 2 is EOL in 3 months (https://pythonclock.org) so I propose dropping support for it. Projects that are still actively maintained should move to Python 3 if they haven't done so already. For old projects nothing will prevent you from using an older release.

Since the last release is quite old I think we should prepare a new one before dropping support.

Does anyone have issue with this? Is there any project that can't easily move from Python 2 to Python 3 right now? I would like to get some feedback from the affected users.

hugovk commented 5 years ago

It's probably worth dropping Python 3.1-3.4 as well, they're also EOL and no longer receiving security updates (or any updates) from the core Python team.

Version Release date Supported until
2.6 2008-10-01 2013-10-29
2.7 2010-07-03 2020-01-01
3.0 2008-12-03 2009-06-27
3.1 2009-06-27 2012-04-09
3.2 2011-02-20 2016-02-27
3.3 2012-09-29 2017-09-29
3.4 2014-03-16 2019-03-16

Source: https://en.wikipedia.org/wiki/CPython#Version_history

hugovk commented 5 years ago

Please see PR https://github.com/pyudev/pyudev/pull/382.

mulkieran commented 3 years ago

Ok. Official Python 2 support will be officially dropped immediately. Gradually, actual support for Python 2 will be dropped, as that is trickier than it looks, and can't really be managed all in one go.

FFY00 commented 3 years ago

But official Python 3 support is being terminated now.

I think you mean Python 2 :stuck_out_tongue:

mulkieran commented 3 years ago

But official Python 3 support is being terminated now.

I think you mean Python 2 stuck_out_tongue

Yup!