Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
def
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
31
def
replace_toml_version(relpath, newversion):
Callers
1
main
Function · 0.85
Calls
1
regex_matches
Function · 0.85
Tested by
no test coverage detected