You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Numpy versions are part of the PEP (although it is not very clear from the PR title / top comment). Currently it would mean only supporting numpy 1.14+
In practice it would mean dropping Python versions a couple of years earlier than with our current policy numpy/numpy#14086 (comment) .
It would be good to have a common policy on this in the scipy ecosystem, though it might be also useful to get more user feedback. In particular, with the currently proposed time frame, it will make a bit more difficult to pip install scikit-learn with system python on Linux for users that don't use the latest distribution releases.
I kinda prefer the users to either install the packages (numpy, scipy, scikit-learn, etc) from their distro's repo, or if they want to do pip install xxx, to have a custom and functional copy of the ecosystem which they're in control of, and to update all packages together.
That's why I never understood why we support a numpy provided in an old Ubuntu. If the user can install a custom scikit-learn, they should be able to install a custom, more up to date numpy as well.
It's a bit different with python, but they can always either do miniconda/conda, or probably soon a python snap package, if it's not already there, etc.
That said, it would mean we would need to backport some critical fixes to the old releases, like what @jnothman just did for 0.20. I would prefer that to having the latest scikit learn support all the versions of our dependencies since the last Ubuntu LTS was released.
Also, doesn't pip automatically install the newest version supported for a package. That'd mean a user on an old python, would get an older version of scikit-learn, which is fine if they want to stay with the old python.
I'm not opposed to the proposal, my point is that if we are to going to break the current workflow of a fraction of users, we better have some numbers on how many users that represents and what's the backup plan for them (as we did when dropping py2.7).
For instance, currently we have 15% of Python 3 downloads on pip on Python3.5, while if we followed this NEP v0.21 wouldn't support Python 3.5 already. Not sure if that is significant or not. (PyPi stats are notoriously unreliable and also it's for all scikit-learn versions, but even 1 data point is better than none).
That'd mean a user on an old python, would get an older version of scikit-learn, which is fine if they want to stay with the old python.
Yeah, but if a fraction of users keep using outdated scikit-learn versions and keep reporting issues for these versions requiring us to make bugfix releases for older versions, that would actually increase our maintenance burden. Again it may be or not significant, but I think we need to consider all aspects in such proposals.
On a related topic, do we intend to drop Python 3.5 support for the next release? It's been 4 years since the 3.5.0 release which is 6 month longer than the NEP timeline (+ some time before we actually release).
Python 3.8 is going to be released in October, and I think it would be good to test it (at least the rc), while supporting 4 python versions is probably too much.
So are we dropping python 3.5 now? According to the NEP it was supported until Feb. 2019. I don't think we wanna be supporting pythons which are not supported by our dependencies.
@adrinjalali I'm happy to drop 3.5 but " I don't think we wanna be supporting pythons which are not supported by our dependencies." is not a good argument imho. Our dependency is numpy 1.11.0, which I imagine supports 3.5
When it comes to minimum CPython version, we are more or less following NEP 29. Then we use the oldest NumPy version that matches oldest-supported-numpy and oldest SciPy that was supports that NumPy version + minimum CPython version.
SPEC 0 is an extension of NEP29 which aims at coordinating the Scientific Python libraries around Minimum Supported Versions.
Yet, this SPEC is still a draft that needs attention from maintainers.
Activity
adrinjalali commentedon Jul 23, 2019
Awesome!
adrinjalali commentedon Jul 29, 2019
Do we want to have a similar discussion about versions of numpy and scipy we support?
amueller commentedon Jul 29, 2019
Yes, I suggested that. I'm not sure if it's part of that NEP. But the suggestion we discussed is to use a time-based window for that as well.
jorisvandenbossche commentedon Jul 30, 2019
Numpy versions are part of the PEP (although it is not very clear from the PR title / top comment). Currently it would mean only supporting numpy 1.14+
rth commentedon Jul 30, 2019
In practice it would mean dropping Python versions a couple of years earlier than with our current policy numpy/numpy#14086 (comment) .
It would be good to have a common policy on this in the scipy ecosystem, though it might be also useful to get more user feedback. In particular, with the currently proposed time frame, it will make a bit more difficult to
pip install scikit-learnwith system python on Linux for users that don't use the latest distribution releases.adrinjalali commentedon Jul 30, 2019
I kinda prefer the users to either install the packages (
numpy,scipy,scikit-learn, etc) from their distro's repo, or if they want to dopip install xxx, to have a custom and functional copy of the ecosystem which they're in control of, and to update all packages together.That's why I never understood why we support a
numpyprovided in an old Ubuntu. If the user can install a customscikit-learn, they should be able to install a custom, more up to datenumpyas well.It's a bit different with
python, but they can always either dominiconda/conda, or probably soon a python snap package, if it's not already there, etc.That said, it would mean we would need to backport some critical fixes to the old releases, like what @jnothman just did for 0.20. I would prefer that to having the latest scikit learn support all the versions of our dependencies since the last Ubuntu LTS was released.
Also, doesn't
pipautomatically install the newest version supported for a package. That'd mean a user on an old python, would get an older version ofscikit-learn, which is fine if they want to stay with the old python.rth commentedon Jul 30, 2019
I agree with your above comment in general.
I'm not opposed to the proposal, my point is that if we are to going to break the current workflow of a fraction of users, we better have some numbers on how many users that represents and what's the backup plan for them (as we did when dropping py2.7).
For instance, currently we have 15% of Python 3 downloads on pip on Python3.5, while if we followed this NEP v0.21 wouldn't support Python 3.5 already. Not sure if that is significant or not. (PyPi stats are notoriously unreliable and also it's for all scikit-learn versions, but even 1 data point is better than none).
rth commentedon Jul 30, 2019
Yeah, but if a fraction of users keep using outdated scikit-learn versions and keep reporting issues for these versions requiring us to make bugfix releases for older versions, that would actually increase our maintenance burden. Again it may be or not significant, but I think we need to consider all aspects in such proposals.
rth commentedon Sep 11, 2019
On a related topic, do we intend to drop Python 3.5 support for the next release? It's been 4 years since the 3.5.0 release which is 6 month longer than the NEP timeline (+ some time before we actually release).
Python 3.8 is going to be released in October, and I think it would be good to test it (at least the rc), while supporting 4 python versions is probably too much.
adrinjalali commentedon Sep 11, 2019
Travis already supports python 3.8 latest beta, we could add that to the cron job?
ogrisel commentedon Sep 11, 2019
I have been testing Python 3.8b4 manually and all tests pass (we just need to make a new joblib release which we are working on at the moment).
ogrisel commentedon Sep 11, 2019
+1 for supporting 3 python versions and Mari Kondo-ing older CPython versions as we go (hoping that PyPy will not accumulate too much lag).
rth commentedon Sep 11, 2019
??
ogrisel commentedon Sep 11, 2019
https://www.youtube.com/watch?v=qo2v645STW0
thomasjpfan commentedon Sep 11, 2019
We have to say thank you before we trash it. 🤗
adrinjalali commentedon Sep 27, 2019
So are we dropping python 3.5 now? According to the NEP it was supported until Feb. 2019. I don't think we wanna be supporting pythons which are not supported by our dependencies.
amueller commentedon Sep 27, 2019
@adrinjalali I'm happy to drop 3.5 but " I don't think we wanna be supporting pythons which are not supported by our dependencies." is not a good argument imho. Our dependency is numpy 1.11.0, which I imagine supports 3.5
thomasjpfan commentedon Mar 29, 2022
We recently dropped 3.7: #21460
When it comes to minimum CPython version, we are more or less following NEP 29. Then we use the oldest NumPy version that matches oldest-supported-numpy and oldest SciPy that was supports that NumPy version + minimum CPython version.
jjerphan commentedon Nov 4, 2022
SPEC 0 is an extension of NEP29 which aims at coordinating the Scientific Python libraries around Minimum Supported Versions.
Yet, this SPEC is still a draft that needs attention from maintainers.
I would close this issue as completed since we are complying with NEP29 for CPython and would give feedback on the dedicated discussions' thread for SPEC 0. What do you think?
adrinjalali commentedon Nov 7, 2022
Closing as we're more or less following NEP29