Increment the patch number in a semantic version string
(version)
| 5 | |
| 6 | |
| 7 | def increment_version(version): |
| 8 | """Increment the patch number in a semantic version string""" |
| 9 | major, minor, patch = map(int, version.split(".")) |
| 10 | return f"{major}.{minor}.{patch + 1}" |
| 11 | |
| 12 | |
| 13 | def update_version_in_file(file_path, new_version): |