MCPcopy Create free account
hub / github.com/Bytez-com/docs / increment_version

Function increment_version

sdk/python/deploy.py:7–10  ·  view source on GitHub ↗

Increment the patch number in a semantic version string

(version)

Source from the content-addressed store, hash-verified

5
6
7def 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
13def update_version_in_file(file_path, new_version):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected