Skip to content

Downgrade Python requirement to 3.12#131

Merged
ian-ross merged 6 commits intoMIT-LAE:mainfrom
ian-ross:python-3-12-dependencies
Mar 30, 2026
Merged

Downgrade Python requirement to 3.12#131
ian-ross merged 6 commits intoMIT-LAE:mainfrom
ian-ross:python-3-12-dependencies

Conversation

@ian-ross
Copy link
Copy Markdown
Member

@ian-ross ian-ross commented Mar 30, 2026

Some users (we have users!) have reported problems with the Python 3.13 requirement in AEIC, so this PR downgrades the requirement to Python 3.12. There are some scientific and geospatial packages that are still stuck on 3.12, so this is the best option for now.

Downgrading required a couple of code changes:

  1. Generic class parameters can't have default values in Python 3.12, so the trajectory build classes had a very small change to accommodate that.
  2. Another test had NetCDF problems with the lower version constraint (pulling in a different version of netCDF4 maybe?), but I have a solution for these problems (run problematic NetCDF file manipulations in subprocesses) and I just applied that solution to the failing test.

Edit: I also had to mess around a bit to get all the CI workflows to work and flow...

@ian-ross
Copy link
Copy Markdown
Member Author

I'm going to merge this without any reviews, since it's blocking Adi's PR.

@ian-ross ian-ross merged commit 3628d26 into MIT-LAE:main Mar 30, 2026
4 checks passed
@ian-ross ian-ross deleted the python-3-12-dependencies branch March 30, 2026 16:41
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.

1 participant