MCPcopy Create free account
hub / github.com/DedalusProject/dedalus / read

Function read

setup.py:87–90  ·  view source on GitHub ↗
(rel_path)

Source from the content-addressed store, hash-verified

85def get_version(rel_path):
86 """Read version from a file via text parsing, following PyPA guide."""
87 def read(rel_path):
88 here = os.path.abspath(os.path.dirname(__file__))
89 with codecs.open(os.path.join(here, rel_path), "r") as fp:
90 return fp.read()
91 for line in read(rel_path).splitlines():
92 if line.startswith("__version__"):
93 delim = '"' if '"' in line else "'"

Callers 1

get_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected