MCPcopy 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
46def 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
54def update_package_json(relpath, newversion):

Callers 1

mainFunction · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected