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