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

Clarification of timeline for removing Python 2.7 support #5211

Closed
brainwane opened this issue Sep 24, 2019 · 3 comments · Fixed by #5303
Closed

Clarification of timeline for removing Python 2.7 support #5211

brainwane opened this issue Sep 24, 2019 · 3 comments · Fixed by #5303

Comments

@brainwane
Copy link
Contributor

Hi, all. I'm trying to update some documentation regarding the sunset/"end of life"/EOL of Python 2.x and ran into a question regarding Requests. Could you confirm that Requests does NOT expect to drop support for Python 2.7 in 2020?

Context: python3statement/python3statement.github.io#194 suggested that https://python3statement.org/#sections30-projects add Requests as a project that will drop support for Python 2.7 in 2020, but referred to a hint on the Requests homepage that has since been removed. Requests is currently listed as a participating project in the Python 3 Statement. The Python 3 support section of the FAQ does not mention an estimated date for dropping Python 2.7 support. I see in #5199 (comment) that @nateprewitt said:

Requests has a large user base with varying needs which means we'll need to maintain 2.7 support for sometime beyond EoL. Once pip is migrated to being Python 3 only (no ETA to my knowledge), we would be able to consider it, but there aren't any concrete plans at the moment.

In this discussion of pip's plans for deprecating 2.7 support it does seem to me that there's no concrete timeline yet. And that implies to me that perhaps Requests should be removed from the Python 3 Statement list of "Participating Projects: These projects pledge to drop Python 2 support in or before 2020."

Is my understanding correct? If so I'd like to submit a PR to remove Requests from the Python 3 Statement.

Also, I suggest that we add a "Python 2 support?" question to the FAQ, and once I know the answer to my question above, I will be happy to contribute that as a pull request. Thanks!

@nateprewitt
Copy link
Member

Hi @brainwane, thanks for reaching out on this. The quote above is correct, we don't have immediate plans to remove support for 2.7 from Requests. The earliest time we'd be able to remove support for 2.7 would be after pip had stopped support, but I'd expect around a 6 month ramp down after that. We'll make sure we're giving enough warning for users to migrate.

That said, depending on timelines, there may come a point Requests stops receiving feature updates for 2.7, but we'd maintain compatibility for the timetable above.

@hugovk
Copy link
Contributor

hugovk commented Jan 1, 2020

I made PR python3statement/python3statement.github.io#280 to remove Requests from the statement.

brainwane added a commit to brainwane/requests that referenced this issue Jan 1, 2020
Fixes: psf#5211

Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>
nateprewitt added a commit that referenced this issue Jan 9, 2020
* Add Python 2 support entry in FAQ

Fixes: #5211

Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>

* Adding Python 3 recommendation

Co-authored-by: Nate Prewitt <nate.prewitt@gmail.com>
@hugovk
Copy link
Contributor

hugovk commented Aug 4, 2020

Hi @brainwane, thanks for reaching out on this. The quote above is correct, we don't have immediate plans to remove support for 2.7 from Requests. The earliest time we'd be able to remove support for 2.7 would be after pip had stopped support, but I'd expect around a 6 month ramp down after that. We'll make sure we're giving enough warning for users to migrate.

That said, depending on timelines, there may come a point Requests stops receiving feature updates for 2.7, but we'd maintain compatibility for the timetable above.

An update on the pip timeline:

pip will continue to ensure that it runs on Python 2.7 after the CPython 2.7 EOL date. Support for Python 2.7 will be dropped, if bugs in Python 2.7 itself make this necessary (which is unlikely) or in pip 21.0 (Jan 2021), whichever is earlier.

https://pip.pypa.io/en/latest/development/release-process/#python-2-support

pypa/pip#6148

pypa/pip#8087

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants