-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add Python 3.12 support and drop Python 3.8 support (#335)
This change coincides with the release of Python 3.12, which happened 02 OCT 2023. Anyone tracking this repository and this change should update their use of pyenv locally, to include py3.12.x Changes made to add Python 3.12 support include: * Update the Docker base image version * Update the CONTRIBUTING documentation * Update the testing environments in `tox`, workflows, and unit tests * Update `pyproject.toml` and generate an updated `poetry.lock` lockfile * The existing `poetry-core` specified minimum requirement still works Changes made to remove Python 3.8 support include: * Update `pyproject.toml` and regenerate `poetry.lock` * Upgrade target version for QA tools * Use the new `str.removeprefix` and `str.removesuffix` methods * Use `pyupgrade` to automatically update code * Add a missing pre-requisite in the `CIPreCommit` implementation * Checking `self.lockfiles` requires project settings to be available * Add a call to `self._backup_project_file()` * Change `_backup_project_file()` to be cached so it only runs once * This is preferred over moving the call to the function in `CIBase` up during initialization, to be before `_check_prerequisites()`, since none of the other implementations require it * Update tests * Remove Python 3.8 from `tox` config * Update the test workflow * Update the test for supported Python versions * Update documentation and remove references to Python 3.8 * Fix typos Closes: #320 Closes: #215 BREAKING CHANGE: Support for Python 3.8 was removed due to the change in CONTRIBUTING policy to support only the current/latest release plus the previous three minor versions of Python.
- Loading branch information
Showing
27 changed files
with
98 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.