Python version bump checklist#
This checklist outlines the necessary steps to update the supported Python versions for the project.
Code modifications#
Update
requires-python:Perform a batch search for
requires-pythonacross the project.Increment the specified Python version to the new minimum supported version.
Update
max_supported_python:In the
pyproject.tomlfile, locate thetool.pyproject-fmt.max_supported_pythonsetting.Increment the version to the new maximum supported Python version.
Update GitHub Actions workflow:
Open the
.github/workflows/test.ymlfile.In the
matrix.python-versionsection, remove the oldest Python version and add the new latest supported version.
Codebase verification#
Search for obsolete version mentions:
Perform a batch search for the Python version being removed and the next subsequent version to identify any related TODOs or version-specific logic that needs to be updated. For example, search for
python 3.10,python3.10,python 3.11, andpython3.11.
Review
sys.version_infousage:Conduct a batch search for
sys.version_infothroughout the codebase.Examine each instance to ensure that any version-specific logic is updated or removed as necessary.
Finalizing changes#
Run prek:
Execute
prek run -ato ensure all code formatting and quality checks pass with the new changes.
Bump application version:
In the
flexget/_version.pyfile, increment the minor version number.
Post-merge actions#
Update wiki:
After the pull request with these changes has been merged, update the upgrade actions on the FlexGet wiki.