MCPcopy Create free account
hub / github.com/chatmail/core / read_toml_version

Function read_toml_version

scripts/set_core_version.py:24–28  ·  view source on GitHub ↗
(relpath)

Source from the content-addressed store, hash-verified

22
23
24def read_toml_version(relpath):
25 res = regex_matches(relpath, rex)
26 if res is not None:
27 return res.group(1)
28 raise ValueError(f"no version found in {relpath}")
29
30
31def replace_toml_version(relpath, newversion):

Callers 1

mainFunction · 0.85

Calls 1

regex_matchesFunction · 0.85

Tested by

no test coverage detected