MCPcopy Create free account
hub / github.com/ForgeRock/forgeops / __parse_version

Function __parse_version

lib/python/forgeops_dependencies.py:21–26  ·  view source on GitHub ↗

Remove 'v' from full version `vX.Y.Z` and then return a tuple corresponding to the version

(version_to_parse)

Source from the content-addressed store, hash-verified

19
20
21def __parse_version(version_to_parse):
22 """
23 Remove 'v' from full version `vX.Y.Z` and then return a tuple corresponding to the version
24 """
25 version_to_parse = version_to_parse.replace('v', '') # remove 'v' from full version `vX.Y.Z`
26 return tuple(map(int, version_to_parse.split(".")[0:3]))
27
28
29def check_component_version(component, version):

Callers 1

check_component_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected