Skip to content

NEP on CPython version dependency #14449

Closed

Description

@amueller

See numpy/numpy#14086 (comment)

Thomas Caswell has proposed a time-based cycle for supported CPython versions in the scipy ecosystem.

This is in contrast to our current (somewhat) Ubuntu-based policy.
I think it's a good idea and it would be nice to adopt this across the ecosystem.

Activity

  1. adrinjalali commented on Jul 23, 2019

    @adrinjalali
    Member

    Awesome!

  2. adrinjalali commented on Jul 29, 2019

    @adrinjalali
    Member

    Do we want to have a similar discussion about versions of numpy and scipy we support?

  3. amueller commented on Jul 29, 2019

    @amueller
    MemberAuthor

    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.

  4. jorisvandenbossche commented on Jul 30, 2019

    @jorisvandenbossche
    Member

    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+

  5. rth commented on Jul 30, 2019

    @rth
    Member

    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.

  6. adrinjalali commented on Jul 30, 2019

    @adrinjalali
    Member

    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.

  7. rth commented on Jul 30, 2019

    @rth
    Member

    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).

  8. rth commented on Jul 30, 2019

    @rth
    Member

    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.

  9. rth commented on Sep 11, 2019

    @rth
    Member

    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.

  10. adrinjalali commented on Sep 11, 2019

    @adrinjalali
    Member

    Travis already supports python 3.8 latest beta, we could add that to the cron job?

  11. ogrisel commented on Sep 11, 2019

    @ogrisel
    Member

    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).

  12. ogrisel commented on Sep 11, 2019

    @ogrisel
    Member

    +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).

  13. rth commented on Sep 11, 2019

    @rth
    Member

    Mari Kondo-ing older CPython versions

    ??

  14. ogrisel commented on Sep 11, 2019

    @ogrisel
    Member
  15. thomasjpfan commented on Sep 11, 2019

    @thomasjpfan
    Member

    We have to say thank you before we trash it. 🤗

  16. adrinjalali commented on Sep 27, 2019

    @adrinjalali
    Member

    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.

  17. amueller commented on Sep 27, 2019

    @amueller
    MemberAuthor

    @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

  18. added
    Needs Decision
    on Mar 23, 2022
  19. thomasjpfan commented on Mar 29, 2022

    @thomasjpfan
    Member

    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.

  20. jjerphan commented on Nov 4, 2022

    @jjerphan
    Member

    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?

  21. adrinjalali commented on Nov 7, 2022

    @adrinjalali
    Member

    Closing as we're more or less following NEP29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions