MCPcopy Create free account
hub / github.com/comaps/comaps / get_version

Function get_version

libs/pyhelpers/setup.py:453–469  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

451
452
453def get_version():
454 versions = []
455 for path, varname in VERSIONS_LOCATIONS.items():
456 with open(os.path.join(OMIM_ROOT, os.path.normpath(path))) as f:
457 for line in f:
458 match = re.search(
459 r'^\s*{}\s*=\s*(?P<version>.*)'.format(varname),
460 line.strip(),
461 )
462 if match:
463 versions.append(LooseVersion(match.group('version')))
464 break
465 code_version = max(versions)
466
467 env_version_addendum = os.environ.get('OMIM_SCM_VERSION', '')
468
469 return "{}{}".format(code_version, env_version_addendum)
470
471
472def transform_omim_requirement(requirement, omim_package_version):

Callers 15

setup.pyFile · 0.90
setup.pyFile · 0.90
setup.pyFile · 0.90
setupFunction · 0.90
setup.pyFile · 0.90
setup.pyFile · 0.90
setup.pyFile · 0.90
setup.pyFile · 0.85
setup.pyFile · 0.85
setup.pyFile · 0.85
setup.pyFile · 0.85
setup.pyFile · 0.85

Calls 5

searchMethod · 0.80
formatMethod · 0.80
getMethod · 0.65
joinMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected