Move to Python 3.12 #818
Labels
documentation
Improvements or additions to documentation
engineering
python
Pull requests that update Python code
Our applications currently run on Python 3.9. This will no longer be supported before too long, so we want to move to 3.12, the current stable release.
All 3 repositories will need this upgrade:
While doing this, we want to change other pieces only if necessary to make this upgrade.
Implementation Sketch and Acceptance Criteria
We're going to start with the notifications-utils repo for this work because it's smaller in size and a dependency for the API and admin.
There is also some open work for utils already in place to help with this effort: @terrazoon has created a PR to replace the
orderedset
library with theordered_set
library instead. This is a necessary step as a part of the Python update, and there may be others like it in the future.(There is a corresponding admin PR to update this dependency as well, however it will need to be updated to reference the right version of notification-utils once that update is complete.)
It's a bit unclear what actually has to happen, but I suspect the following steps to start with:
pyenv
pyproject.toml
to reference Pythong 3.12 instead of 3.9.xmake bootstrap
to get all dependencies loaded and seeing if anything breaksWe should only update other dependencies as absolutely necessary for now. While it's tempting to update all-the-things, that will be difficult to debug should things not work correctly! Furthermore, we may have to take a step-wise approach to this, meaning we update from 3.9 to 3.10 first, then 3.10 to 3.11, and so on.
At a high level, what we need with this update are the following:
Security Considerations
The text was updated successfully, but these errors were encountered: