()
| 157 | |
| 158 | |
| 159 | def get_package_version(): |
| 160 | with open(Path(this_dir) / PACKAGE_NAME / "__init__.py", "r") as f: |
| 161 | version_match = re.search(r"^__version__\s*=\s*(.*)$", f.read(), re.MULTILINE) |
| 162 | public_version = ast.literal_eval(version_match.group(1)) |
| 163 | local_version = os.environ.get("MAMBA_LOCAL_VERSION") |
| 164 | if local_version: |
| 165 | return f"{public_version}+{local_version}" |
| 166 | else: |
| 167 | return str(public_version) |
| 168 | |
| 169 | |
| 170 | def get_wheel_url(): |
no outgoing calls
no test coverage detected