MCPcopy
hub / github.com/InternLM/lmdeploy / get_version

Function get_version

setup.py:23–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def get_version():
24 file_path = os.path.join(pwd, version_file)
25 pattern = re.compile(r"\s*__version__\s*=\s*'([0-9A-Za-z.-]+)'")
26 with open(file_path) as f:
27 for line in f:
28 m = pattern.match(line)
29 if m:
30 return m.group(1)
31 else:
32 assert False, f'No version found {file_path}'
33
34
35def get_turbomind_deps():

Callers 1

setup.pyFile · 0.85

Calls 2

joinMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected