MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / get_version

Function get_version

methods/MIRIX/setup.py:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42# Get version from mirix/__init__.py
43def get_version():
44 import re
45
46 version_file = os.path.join(this_directory, "mirix", "__init__.py")
47 with open(version_file, "r", encoding="utf-8") as f:
48 version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
49 if version_match:
50 return version_match.group(1)
51 raise RuntimeError("Unable to find version string.")
52
53
54requirements = parse_requirements("requirements.txt")

Callers 1

setup.pyFile · 0.70

Calls 3

searchMethod · 0.65
joinMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected