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
{{ message }}
Repository navigation
NEP29: Don't drop Python 3.8 support until Google Colab upgrades to Python 3.9 or above? #2300
As per the NEP29 policy, we will drop Python 3.8 support on Apr 14, 2023.
Google Colab is slowly upgrading its Python version. Recently, they finally upgraded to Python 3.8 (googlecolab/colabtools#3246) after a three-year delay. The upgrade to Python 3.9 or newer is still ongoing (googlecolab/colabtools#2165). If we drop Python 3.8 support in the next PyGMT version, then Google Colab users won't be able to use the latest PyGMT versions.
Considering that supporting old Python versions is not a big burden for us (we're not using features in new Python versions), I'm unsure if we can still support Python 3.8 until Google Colab upgrades to Python 3.9 or newer.
Let's wait and see, Google is experiencing some mass layoffs now, so support might be lacking 🙂
Personally, we could do:
Release PyGMT v0.9.0 before Apr 14 2023, and that version will support Python 3.8
Release PyGMT v0.10.0 (sometime mid 2023?), we could decide to keep Python 3.8 if Google Colab doesn't support Python 3.9 yet
Release PyGMT v0.11.0, I think we should drop Python 3.8 regardless of whether Google Colab has upgraded to Python 3.9, otherwise we'll be falling behind on NEP29, and we don't want too big a range of supported Python versions in our CI, especially if we're starting to support Python 3.12 (scheduled for 2023-10-02).
Xarray just dropped 3.8 and is now relying on 3.9+ features, so think we'll need to drop 3.8 for the next release. I'm actually a bit confused by xarray's rolling policy relative to NEP 29 and will ask for clarification.
I still think that we should keep supporting Python 3.8 for PyGMT v0.9.0. That means Python 3.8 users would be able to use xarray versions up to v2023.01.0. Should we be starting to think about a release by the end of March?
I think it really depends on when we do the v0.9.0 release. If we do the release before April, then we should still support Python 3.8 following NEP29.
I think it really depends on when we do the v0.9.0 release. If we do the release before April, then we should still support Python 3.8 following NEP29.
Ok, so PyGMT v0.9.0 was released and that still supports Python 3.8. Can we decide on whether to drop Python 3.8 in PyGMT v0.10.0 so that it can be mentioned in the PyGMT v0.9.0 forum post, xref #2424 (comment)? 👍 for dropping Python 3.8.
Activity
weiji14 commentedon Jan 24, 2023
Let's wait and see, Google is experiencing some mass layoffs now, so support might be lacking 🙂
Personally, we could do:
maxrjones commentedon Jan 27, 2023
Xarray just dropped 3.8 and is now relying on 3.9+ features, so think we'll need to drop 3.8 for the next release. I'm actually a bit confused by xarray's rolling policy relative to NEP 29 and will ask for clarification.
weiji14 commentedon Mar 3, 2023
According to https://docs.xarray.dev/en/v2023.02.0/getting-started-guide/installing.html#minimum-dependency-versions,
xarraysupports Python versions that are within a 24 month range, which is more aggressive than NEP29's 42 month range. The strange thing is thatxarrayreferences NEP29, so it doesn't make a lot of sense.I still think that we should keep supporting Python 3.8 for PyGMT v0.9.0. That means Python 3.8 users would be able to use
xarrayversions up to v2023.01.0. Should we be starting to think about a release by the end of March?seisman commentedon Mar 3, 2023
Yes to me.
Yes.
maxrjones commentedon Mar 3, 2023
I was confused about this as well - started pydata/xarray#7482 for that reason.
Could we use conditional dependencies to specify the xarray requirements for Python 3.8?
seisman commentedon Mar 9, 2023
The good news is that it's very likely that Google Colab already upgraded its Python version to 3.9 (xref: googlecolab/colabtools#3450).
maxrjones commentedon Mar 9, 2023
I don't have pro to check if the fallback runtime still has 3.8 available, but the default runtime was 3.9 on a quick test.
weiji14 commentedon Mar 10, 2023
Oo, that changes things. In that case, I'm indifferent with keeping Python 3.8 or dropping it. What does the team think?
seisman commentedon Mar 10, 2023
I think it really depends on when we do the v0.9.0 release. If we do the release before April, then we should still support Python 3.8 following NEP29.
weiji14 commentedon Apr 4, 2023
Ok, so PyGMT v0.9.0 was released and that still supports Python 3.8. Can we decide on whether to drop Python 3.8 in PyGMT v0.10.0 so that it can be mentioned in the PyGMT v0.9.0 forum post, xref #2424 (comment)? 👍 for dropping Python 3.8.