MCPcopy Create free account
hub / github.com/apache/singa / tag_string

Function tag_string

tool/release/release.py:26–32  ·  view source on GitHub ↗
(tags)

Source from the content-addressed store, hash-verified

24
25
26def tag_string(tags):
27 if len(tags) == 4:
28 return ".".join(str(i) for i in tags[:3]) + "-rc" + str(tags[3])
29 elif len(tags) == 3:
30 return ".".join(str(i) for i in tags)
31 else:
32 raise ValueError("malfomated tags %s" % ".".join(str(i) for i in tags))
33
34
35def main(args):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected