()
| 41 | |
| 42 | # Get version from mirix/__init__.py |
| 43 | def 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 | |
| 54 | requirements = parse_requirements("requirements.txt") |