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
When a project releases a new major or minor version, we recommend that they support at least all minor versions of Python introduced and released in the prior 42 months from the anticipated release date with a minimum of 2 minor versions of Python, and all minor versions of NumPy released in the prior 24 months from the anticipated release date with a minimum of 3 minor versions of NumPy.
Here is what SPEC 0 recommends:
Specifically, we recommend that:
Support for Python versions be dropped 3 years after their initial release.
Support for core package dependencies be dropped 2 years after their initial release.
They're similar but with some differences:
42 months vs 36 months support for Python versions
SPEC 0 is applied to all core package dependencies while NEP 29 is only applied to NumPy.
If we follow SPEC 0, then currently the minimum supported versions will be:
We're going to pin to pandas>=1.2.0 as discussed at #2729 (comment) to ease the implementation of GMT_DATASET. I can also see this more aggressive pin being helpful for #2800, as we'll drop pandas=1.5.x on or after 2024-09-18, and using pandas>=2.0 would ease some implementations of the Arrow integration.
Otherwise, no strong opinions on moving to SPEC 0, and if most of us agree, we can probably move on to implementing the minimum pins. That said, I would maybe suggest that we delay implementation of this to PyGMT v0.12.0, to have a bit of a transition period?
To avoid too much maintenance burden, we should only pin them in as few files as possible, i.e., pyproject.toml, requirements.txt, environment.yml, compatibility table and .github/workflows/ci_tests.yaml
Activity
seisman commentedon Dec 10, 2023
OK, reading more about NEP 29 and SPEC 0.
Here is what NEP 29 recommends:
Here is what SPEC 0 recommends:
They're similar but with some differences:
If we follow SPEC 0, then currently the minimum supported versions will be:
weiji14 commentedon Dec 10, 2023
Looking at the PyPI download stats at https://pypistats.org/packages/pygmt, it seems like Python 3.9 usage is hovering at about 10-30% in the past 3 months, so not an insignificant fraction. Python 3.10 does seem to be the highest at >50% usually.
We're going to pin to
pandas>=1.2.0as discussed at #2729 (comment) to ease the implementation ofGMT_DATASET. I can also see this more aggressive pin being helpful for #2800, as we'll droppandas=1.5.xon or after 2024-09-18, and usingpandas>=2.0would ease some implementations of the Arrow integration.Otherwise, no strong opinions on moving to SPEC 0, and if most of us agree, we can probably move on to implementing the minimum pins. That said, I would maybe suggest that we delay implementation of this to PyGMT v0.12.0, to have a bit of a transition period?
seisman commentedon Dec 11, 2023
Sounds reasonable.
seisman commentedon Jan 14, 2024
Here are a few points in my mind:
pyproject.toml,requirements.txt,environment.yml, compatibility table and.github/workflows/ci_tests.yamlweiji14 commentedon Feb 5, 2024
IPython is also listed at https://scientific-python.org/specs/spec-0000/, and is marked as an optional dependency of PyGMT here:
pygmt/pyproject.toml
Line 46 in 4b7cb2a
Do we need to pin to a minimum version of IPython too? If so, we should be on
ipython>=8.0.0as of early Feb 2024.seisman commentedon Feb 5, 2024
I prefer not to pin IPython since it's not heavily used by PyGMT.
SPEC0: Set minimum supported version to Python 3.10
weiji14 commentedon Feb 5, 2024
Ok let's go with not pinning IPython then, less work having to update the minimum pin every release.