Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIP-155: Drop support for Python2 #15185

Closed
merlimat opened this issue Apr 15, 2022 · 8 comments
Closed

PIP-155: Drop support for Python2 #15185

merlimat opened this issue Apr 15, 2022 · 8 comments

Comments

@merlimat
Copy link
Contributor

merlimat commented Apr 15, 2022

Motivation

Python 2.x has been deprecated for many years now and it was officially end-of-lifed 2.5 years ago (https://www.python.org/doc/sunset-python-2/).

We have well reached the point by which we need to drop Python 2.7 compatibility for Pulsar client and for Pulsar functions.

Based on Python end-of-life policies, there are 4 versions of Python that are currently supported: 3.7, 3.8, 3.9 and 3.10. https://endoflife.date/python

That gives a 5 years support schedule from release to EoL.

Goal

Support only the last 4 Python releases Pulsar client and for Pulsar functions, currently 3.7, 3.8, 3.9 and 3.10. Once 3.7 reaches end-of-life, it will be dropped by Pulsar too.

This policy will be also applied to the Pulsar patch releases which will stop providing Python wheel files for the deprecated versions.

API Changes

No changes at this time, though Pulsar Python client library will be now free to use Python3 specific syntaxes and libraries.

Changes

  1. Switch the CI build to run Python client lib tests with Python3
  2. Switch integration tests to use Python3
  3. Stop building and distributing wheel files for Python 2.7
@zbentley
Copy link
Contributor

Thoughts on minimum py3 version? 3.6+ and 3.7+ are common choices in the python ecosystem.

@merlimat
Copy link
Contributor Author

merlimat commented Apr 15, 2022

Do you know where to find a list of feature/syntax that were changed in 3.6 or 3.7?
As in: what could we be free to use if we didn't have to support Py 3.5 and 3.6?

@zbentley
Copy link
Contributor

Most details are here: https://docs.python.org/3/whatsnew/index.html

@merlimat
Copy link
Contributor Author

This is actually helpful: https://endoflife.date/python

3.6 has already reached end of life and here will be no more security updates. It does indeed make sense for us to stop supporting it too.

@github-actions
Copy link

The issue had no activity for 30 days, mark with Stale label.

@github-actions
Copy link

The issue had no activity for 30 days, mark with Stale label.

@dimaqq
Copy link

dimaqq commented Sep 9, 2022

Poke

@github-actions github-actions bot removed the Stale label Sep 9, 2022
@tisonkun
Copy link
Member

tisonkun commented Dec 7, 2022

Closed as resolved. I don't find outstanding dependencies.

@tisonkun tisonkun closed this as completed Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants