Hi everyone,
I'd like to start a discussion on dropping support for Python 2 in JJB.
Maintaining Python 2 support becomes difficult and time-consuming. Recently I spent like an hour or so trying to fix an issue with JJB dependencies that dropped support for Python 2:
https://review.opendev.org/c/jjb/jenkins-job-builder/+/828860. Most open source projects have already dropped support for Python 2, others are dropping it now. So it's quite natural that the JJB project is affected.
Since Python 2 has been EOL since January 2020, so more than 2 years now, I think it's time to finally drop support for it in JJB. More importantly, with so few actual maintainers of JJB, we simply cannot afford wasting our time on this.
I can understand it might affect people who still run JJB using Python 2. But if they do, they should upgrade Python anyway. If that's not an option (not yet) they could still use our latest JJB 3.x release until they upgrade their Python installation.
Once we drop support for Python 2, we should probably bump the "main" version, to indicate this backward incompatible change. As a result JJB 4.x would officially support Python 3 only.
Please comment, I'd like to hear your opinions on this topic.
Best regards,
Adam Romanek