MCPcopy Create free account
hub / github.com/CompVis/zigma / get_package_version

Function get_package_version

dis_mamba/setup.py:163–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161
162
163def 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
174def get_wheel_url():

Callers 2

get_wheel_urlFunction · 0.70
setup.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected