Dropping support for Python 2 - Request For Comments

15 views
Skip to first unread message

Adam Romanek

unread,
Feb 15, 2022, 3:18:06 PM2/15/22
to jenkins-job-builder
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

Thanh Ha

unread,
Feb 16, 2022, 8:49:57 AM2/16/22
to jenkins-job-builder
Hi Adam,

I think this makes a lot of sense and IMO we should probably drop support for Python 3.5 and 3.6 too considering those are also EOL (https://endoflife.date/python).

I'd be curious if there's any end users of JJB still using old versions of Python that might be affected but I think it's reasonable for us to only support Python versions that are active from upstream.

Regards,
Thanh

--
You received this message because you are subscribed to the Google Groups "jenkins-job-builder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins-job-bui...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkins-job-builder/54fce8b8-884c-4290-b327-17d2c98e50d5n%40googlegroups.com.

Adam Romanek

unread,
Feb 18, 2022, 2:58:58 AM2/18/22
to jenkins-job-builder
Hi,

I fully agree, I'd drop support for Python 3.5 and 3.6 too.

Regards,
Adam

Reply all
Reply to author
Forward
0 new messages