Skip to content

prod: drop python 3.9 per MPL and NEP29 - #40

Merged
beckermr merged 16 commits into
mainfrom
beckermr-patch-1
Jan 29, 2025
Merged

beckermr merged 16 commits into
mainfrom
beckermr-patch-1

Conversation

@beckermr

Copy link
Copy Markdown
Collaborator

We need to drop 3.9 support for two reasons:

  1. The use of the match cycle syntax means we are no longer compatible with 3.9
  2. matplotlib follows numpy's version support in NEP29. Per their docs, support for python 3.9 was dropped for any release after December 18, 2024.

@beckermr
beckermr marked this pull request as draft January 28, 2025 12:50
Comment thread environment-dev.yml Resolved
Comment thread environment-dev.yml Resolved
Comment thread environment-dev.yml Resolved
@cvanelteren

Copy link
Copy Markdown
Collaborator

I anticipate potential challenges regarding our Basemap integration (reference: https://github.com/matplotlib/basemap/blob/develop/packages/basemap/pyproject.toml).

While Basemap wasn't explicitly listed as a dependency in Proplot, it effectively functions as one in practice. We should make a deliberate decision to either formally include it or remove the functionality entirely. The Basemap project is currently undergoing a revival after several years of deprecation, with ongoing efforts to modernize it. I've submitted a pull request to help catalyze this process (https://github.com/matplotlib/basemap/actions/runs/12949899747/job/36122328672?pr=611), though I must be mindful of maintaining focus across multiple projects.

I agree with the previous points raised, and maintaining version parity with Matplotlib would be smart!

Comment thread environment-dev.yml Resolved
Comment thread environment-dev.yml Resolved
@cvanelteren

cvanelteren commented Jan 28, 2025 •

Copy link
Copy Markdown
Collaborator

We should perhaps remove docs/environment.yml as it is currently causing the readthedocs to fail due to a mismatch of the python versions.
EDIT: and just use the dev env in the build docs workflow

Comment thread environment-dev.yml Resolved
Comment thread environment-dev.yml Resolved
Comment thread environment-dev.yml Resolved
@beckermr

Copy link
Copy Markdown
Collaborator Author

This is blocked on a release of basemap 1.4.1 from conda-forge. See conda-forge/basemap-feedstock#137

Comment thread environment-dev.yml Resolved
Comment thread pyproject.toml Resolved
@beckermr
beckermr marked this pull request as ready for review January 28, 2025 22:51
@beckermr
beckermr requested a review from cvanelteren January 28, 2025 22:51

@cvanelteren cvanelteren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pin below 3.13 works for the available basemap? Otherwise looks good.

@beckermr

Copy link
Copy Markdown
Collaborator Author

yes that pin works for the available basemap packages.

@beckermr
beckermr merged commit ecd8030 into main Jan 29, 2025
@beckermr
beckermr deleted the beckermr-patch-1 branch January 29, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants