Update calitp-data-infra package to be compatible with Python 3.11 #3670
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Updating Python requirement for the package to 3.8 - 3.11. This package is installed in the Cloud Composer (CC) environment. The CC image we're on right now uses Python 3.8, but all of the images that have support beyond the end of March use Python 3.11.
Necessary for resolution of #3551
Type of change
How has this been tested?
Ran the tests that exercise the package code under Python 3.11 locally. There are things we could take advantage of with the 3.11 upgrade (like updating type hints with PEP 585: type hinting generics in standard collections and PEP 604: allow writing union types as X | Y), but nothing that we were using should have changed substantively between Python 3.8 and 3.11.
Post-merge follow-ups
2024.2.12.post1
version of calitp-data-infra in the codebase and replace with2025.1.30