navapbc / template-application-flask

Apache License 2.0
7 stars 3 forks source link

Pin Python minor version and document upgrade details #235

Closed chouinar closed 2 weeks ago

chouinar commented 2 weeks ago

Changes

Pin the Python version and document details on how to upgrade

Context for reviewers

Python releases new minor versions (3.12, 3.13, etc.) every year in October. It usually takes a few weeks for all of our dependencies and tooling to also be upgraded to the latest version, causing our builds to break. There isn't much we can do except wait a few weeks and then do the upgrade (assuming no breaking changes in features we use).

However, we had some of our dependencies pinned to the major version (Python 3) so it has broken the past few years until it started working again when the dependencies got fixed. This is just getting ahead of that and making sure the upgrade to Python 3.13 doesn't cause any problems.

Testing

This change is largely documentation as the Python version used in the dockerfile + pyproject.toml already would have resolved to Python 3.12, this just makes it so it won't auto-upgrade to 3.13 when that releases in October.