MCPcopy Create free account
hub / github.com/InternScience/SciReason / parse_require_file

Function parse_require_file

setup.py:74–80  ·  view source on GitHub ↗
(fpath)

Source from the content-addressed store, hash-verified

72 yield info
73
74 def parse_require_file(fpath):
75 with open(fpath, 'r') as f:
76 for line in f.readlines():
77 line = line.strip()
78 if line and not line.startswith('#'):
79 for info in parse_line(line):
80 yield info
81
82 def gen_packages_items():
83 if exists(require_fpath):

Callers 2

parse_lineFunction · 0.85
gen_packages_itemsFunction · 0.85

Calls 3

openFunction · 0.85
parse_lineFunction · 0.85
readlinesMethod · 0.45

Tested by

no test coverage detected