MCPcopy Create free account
hub / github.com/OpenPipe/ART / get_current_version

Function get_current_version

scripts/bump_version.py:17–24  ·  view source on GitHub ↗

Extract current version from pyproject.toml.

()

Source from the content-addressed store, hash-verified

15
16
17def get_current_version():
18 """Extract current version from pyproject.toml."""
19 pyproject_path = Path(__file__).parent.parent / "pyproject.toml"
20 content = pyproject_path.read_text()
21 match = re.search(r'version = "(\d+\.\d+\.\d+)"', content)
22 if not match:
23 raise ValueError("Could not find version in pyproject.toml")
24 return match.group(1)
25
26
27def bump_version(current_version, bump_type):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected