Not sure why this didn't get noticed before but importlib.resources.{as_file,files} were added in python 3.9, but we supported 3.7. I dropped python 3.7 since it's EOL, but 3.8 is not so I migrated this to use importlib_resources. I also added python 3.10 to the local build for good measure.
Some other general TLC:
upgrade setup-python GHA usages to be python 3.12 and a supported ubuntu (noble)
Not sure why this didn't get noticed before but
importlib.resources.{as_file,files}
were added in python 3.9, but we supported 3.7. I dropped python 3.7 since it's EOL, but 3.8 is not so I migrated this to useimportlib_resources
. I also added python 3.10 to the local build for good measure.Some other general TLC:
pyupgrade --py38-plus