Skip to content

Add support for Python3.14, drop support for 3.9 and 3.10#826

Open
tsmbland wants to merge 8 commits intomainfrom
upgrade_python
Open

Add support for Python3.14, drop support for 3.9 and 3.10#826
tsmbland wants to merge 8 commits intomainfrom
upgrade_python

Conversation

@tsmbland
Copy link
Copy Markdown
Collaborator

@tsmbland tsmbland commented Mar 26, 2026

Description

Updates dependencies to use the latest versions of pandas, xarray, numpy and scipy. As a result, I've had to drop support for Python 3.9 and 3.10 as these are not supported by the latest package versions. There are also a few syntax changes related to pandas and xarray (in particular, xarray was warning about upcoming changes to some default parameters, so I've set these explicitly to avoid unwanted behaviour changes).

As shown by pandas 3.0, it's likely that any further major version updates to these packages will break things, so I've capped the upper versions to prevent unwanted breakages (e.g. when pandas 4 comes out). Not sure why I wasn't doing this already, to be honest.

Since this is a major breaking change, I'll wait for the next major release (i.e. v1.6.0) to merge this, whenever the time comes.

Fixes #825

Type of change

  • New feature (non-breaking change which adds functionality)
  • Optimization (non-breaking, back-end change that speeds up the code)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (whatever its nature)

Key checklist

  • All tests pass: $ python -m pytest
  • The documentation builds and looks OK: $ python -m sphinx -b html docs docs/build

Further checks

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@tsmbland tsmbland changed the title Add support for python3.14, drop support for 3.9 and 3.10 Add support for Python3.14, drop support for 3.9 and 3.10 Mar 27, 2026
@tsmbland tsmbland marked this pull request as ready for review March 27, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Incompatible with pandas 3.0

1 participant