Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chatmail/core
/ read_json_version
Function
read_json_version
scripts/set_core_version.py:46–51 ·
view source on GitHub ↗
(relpath)
Source
from the content-addressed store, hash-verified
44
45
46
def
read_json_version(relpath):
47
p = pathlib.Path(relpath)
48
assert p.exists()
49
with
open(p)
as
f:
50
json_data = json.loads(f.read())
51
return
json_data[
"version"
]
52
53
54
def
update_package_json(relpath, newversion):
Callers
1
main
Function · 0.85
Calls
1
exists
Method · 0.45
Tested by
no test coverage detected