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

Warn about EOL Python versions #13200

Open
1 task done
kesara opened this issue Feb 2, 2025 · 4 comments
Open
1 task done

Warn about EOL Python versions #13200

kesara opened this issue Feb 2, 2025 · 4 comments
Labels
resolution: needs standard Should be agreed as a standard before implementation type: feature request Request for a new feature

Comments

@kesara
Copy link

kesara commented Feb 2, 2025

What's the problem this feature will solve?

Some times users are not aware about Python release cycle.
It would be nice if pip can warn the users if they are running a EOL Python version.

Describe the solution you'd like

If a user is running a EOL Python version like Python 3.6.
Add a notice similar to [notice] A new release of pip is available saying that user is running an EOL Python version and should consider upgrading.

Alternative Solutions

N/A

Additional context

Sometimes users are unaware that they are are running an EOL Python version1.

Code of Conduct

Footnotes

  1. https://mailarchive.ietf.org/arch/msg/tools-discuss/8PcBl45UNbA_xk8SnYUJa3lVn7U/

@kesara kesara added S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature labels Feb 2, 2025
@notatallshaw
Copy link
Member

The problem with this is Python 3.6 isn't EoL everywhere. I believe, though double check, it's the default version of Python on RHEL 8, which will receive maintenance support till May 2029.

In general it is up to the specific Python distribution of when to mark something as End of Life, and this can wildly vary between different distributors, and they can change their mind mid cycle if they so choose.

IMO for pip to add a feature like this the Python distribution would need to provide this information to pip via a standard, such a feature would need to be discussed on the Python discussion board: https://discuss.python.org/c/packaging/14

@notatallshaw notatallshaw added resolution: needs standard Should be agreed as a standard before implementation and removed S: needs triage Issues/PRs that need to be triaged labels Feb 2, 2025
@kesara
Copy link
Author

kesara commented Feb 3, 2025

But pip itself has already dropped the support for Python 3.61.
So I assume pip can follow the Python lifecycle schedule2.

Footnotes

  1. https://github.com/pypa/pip/pull/10641

  2. https://devguide.python.org/versions/

@notatallshaw
Copy link
Member

Pip doesn't have a concrete lifecycle of Python support, it's based on how many downloads pip receives. For example pip still supports Python 3.8 even though the PSF doesn't.

@sirosen
Copy link
Contributor

sirosen commented Feb 9, 2025

I see two additional problems with this idea.

  1. If someone is running 3.5, they're probably running an old version of pip. Therefore, adding a warning is not effective as outreach to that user.
  2. It is out of scope for pip. pip doesn't (attempt to) manage your Python installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: needs standard Should be agreed as a standard before implementation type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants