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

Function parse_require_file

setup.py:108–113  ·  view source on GitHub ↗
(fpath)

Source from the content-addressed store, hash-verified

106 yield info
107
108 def parse_require_file(fpath):
109 with open(fpath) as f:
110 for line in f.readlines():
111 line = line.strip()
112 if line and not line.startswith('#'):
113 yield from parse_line(line, fpath)
114
115 def gen_packages_items():
116 if os.path.exists(require_fpath):

Callers 2

parse_lineFunction · 0.85
gen_packages_itemsFunction · 0.85

Calls 1

parse_lineFunction · 0.85

Tested by

no test coverage detected