MCPcopy Create free account
hub / github.com/DragonisCV/RAM / get_hash

Function get_hash

setup.py:43–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def get_hash():
44 if os.path.exists('.git'):
45 sha = get_git_hash()[:7]
46 # currently ignore this
47 # elif os.path.exists(version_file):
48 # try:
49 # from ram.version import __version__
50 # sha = __version__.split('+')[-1]
51 # except ImportError:
52 # raise ImportError('Unable to get git version')
53 else:
54 sha = 'unknown'
55
56 return sha
57
58
59def write_version_py():

Callers 1

write_version_pyFunction · 0.85

Calls 1

get_git_hashFunction · 0.85

Tested by

no test coverage detected