MCPcopy Create free account
hub / github.com/cjrd/self-supervised-pretraining / parse_require_file

Function parse_require_file

OpenSelfSup/setup.py:140–146  ·  view source on GitHub ↗
(fpath)

Source from the content-addressed store, hash-verified

138 yield info
139
140 def parse_require_file(fpath):
141 with open(fpath, 'r') as f:
142 for line in f.readlines():
143 line = line.strip()
144 if line and not line.startswith('#'):
145 for info in parse_line(line):
146 yield info
147
148 def gen_packages_items():
149 if 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