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

Drop Python 3.5 support #29034

Closed
TomAugspurger opened this issue Oct 16, 2019 · 17 comments · Fixed by #29212
Closed

Drop Python 3.5 support #29034

TomAugspurger opened this issue Oct 16, 2019 · 17 comments · Fixed by #29212
Milestone

Comments

@TomAugspurger
Copy link
Contributor

As discussed in #27492.

The 0.25.x branch should be stable for the next release, so we can start on this at any time.

@TomAugspurger TomAugspurger added this to the 1.0 milestone Oct 16, 2019
@topper-123
Copy link
Contributor

I'd be positive to deprecate python 3.5. It's old and 3.6 brings a lot of changes, so make sense to not support 3.5 in a long-term stable version.

An idea could be to make a dual release 0.26 and 1.0. They would have identical code bases, but 0.26 would support py3.5 and 1.0 would support py3.6, so it would only be a minor chang in setup.py.

@TomAugspurger
Copy link
Contributor Author

TomAugspurger commented Oct 18, 2019

Why do you think we need a deprecation instead of just dropping it?

@topper-123
Copy link
Contributor

Sorry, I miswrote that, i meant drop.

@TomAugspurger
Copy link
Contributor Author

Gotcha, thanks.

FTR, https://numpy.org/neps/nep-0029-deprecation_policy.html has September 2019 as the cutoff for 3.5.

@WillAyd
Copy link
Member

WillAyd commented Oct 24, 2019

@pandas-dev/pandas-core do we have thoughts on this? The only thing I can think of that warrants a 0.25.3 release right now might be the fix in #29173

If there isn't an appetite for that release I think we should drop 35 from CI now

@jreback
Copy link
Contributor

jreback commented Oct 24, 2019

+1 in dripping 3.5 for 1.0

this wouldn’t affect 0.25.x

@WillAyd
Copy link
Member

WillAyd commented Oct 24, 2019

I’m talking specifically about dropping from CI. I’m leaning towards maybe cutting a 25.3 for the regression fix and dropping 35 after that

@jreback
Copy link
Contributor

jreback commented Oct 24, 2019

whether we cut 0.25.3 is irrelevant
we have no reason to change the 0.25.x CI

@WillAyd
Copy link
Member

WillAyd commented Oct 24, 2019

Ah OK. So OK to drop from CI on master and if we want a 0.25.3 can target the 0.25.x branch directly?

@jreback
Copy link
Contributor

jreback commented Oct 24, 2019

right as usual would merge a patch to master and back port to 0.25.x

@TomAugspurger
Copy link
Contributor Author

TomAugspurger commented Oct 24, 2019 via email

@gfyoung
Copy link
Member

gfyoung commented Oct 24, 2019

+1 from me as well for master

@datapythonista
Copy link
Member

+1, let's do it then: #29212

@jorisvandenbossche
Copy link
Member

Are there specific 3.6 features we want to start using once 3.5 is dropped?

https://docs.python.org/3/whatsnew/3.6.html

f-strings seems to be one (although I would personally not do a "big cleanup" to move existing ones). And we can now also rely on dict ordering (although I think we already did for >= 3.6, so probably only need to remove the compat code for 3.5 regarding that).
There are also some typing related enhancements (variable annotations).

@wesm
Copy link
Member

wesm commented Oct 25, 2019

FYI (I think this data is based on the last 6 months)

$ pypistats python_minor pandas
| category | percent | downloads  |
|----------|--------:|-----------:|
| 3.6      |  36.90% | 33,733,634 |
| 2.7      |  35.00% | 31,997,724 |
| 3.5      |  13.96% | 12,760,015 |
| 3.7      |  11.77% | 10,760,426 |
| 3.4      |   1.62% |  1,483,707 |
| null     |   0.67% |    616,051 |
| 3.8      |   0.06% |     58,035 |
| 2.6      |   0.02% |     18,017 |
| 3.3      |   0.00% |        835 |
| 3.9      |   0.00% |         57 |
| 3.2      |   0.00% |         55 |
| 3.1      |   0.00% |          3 |
| Total    |         | 91,428,559 |

more details on https://pypistats.org/packages/pandas

@WillAyd
Copy link
Member

WillAyd commented Oct 25, 2019

@jorisvandenbossche I commented in the PR instead of here (here would have been better...) but yea your list and my list for follow ups to this are pretty much aligned

#29212 (comment)

Can open follow up issues for those after we get this merged

@WillAyd
Copy link
Member

WillAyd commented Oct 25, 2019

@wesm so one of the motivating factors for dropping this as well is alignment with NEP 29, which suggests dropping Py35 support for anything release Dec 19 onwards:

https://numpy.org/neps/nep-0029-deprecation_policy.html

Do you see that as problematic? I'm surprised 3.5 is as high on that list (I vaguely recall seeing other lists where it was much lower) but curious what you might be thinking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants