Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add python 3.13 support #1404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 4, 2025
Merged

Add python 3.13 support #1404

merged 2 commits into from
Feb 4, 2025

Conversation

Manangka
Copy link
Collaborator

@Manangka Manangka commented Feb 4, 2025

Fixes #1317 and #1331

Description

With Numba now also supporting python 3.13 we can also add 3.13 support to iMOD-python.
This PR adds a 3.13 environment to the pixi.toml and also adds an import test of it to the TC pipelines.

One line of code had to be rwritten to be 3.13 compatible. The importlib.resources.files no longer provides a context manager and has to wrapped using the importlib.resources.as_file method

Checklist

  • Links to correct issue
  • Update changelog, if changes affect users
  • PR title starts with Issue #nr, e.g. Issue #737
  • Unit tests were added
  • If feature added: Added/extended example

Copy link
Contributor

@JoerivanEngelen JoerivanEngelen left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! Could you update this in the changelog as well?

"Fixed an ImportError which was thrown upon calling import imod with Python 3.13"

I think we are still waiting for this one to succeed: conda-forge/numba-feedstock#152 so we can really state that we are supporting Python 3.13. We can then update the documentation (see: "Which python?" section of installation guide).

Approving in advance

Copy link

sonarqubecloud bot commented Feb 4, 2025

@Manangka Manangka enabled auto-merge February 4, 2025 12:53
@Manangka Manangka added this pull request to the merge queue Feb 4, 2025
Merged via the queue into master with commit a99c4d6 Feb 4, 2025
7 checks passed
@Manangka Manangka deleted the issue_#1317_python313_support branch February 4, 2025 13: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.

[Bug] - iMOD Python breaks upon import with Python 3.13
2 participants