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

Function get_package_version

dis_causal_conv1d/setup.py:155–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153
154
155def get_package_version():
156 with open(Path(this_dir) / "causal_conv1d" / "__init__.py", "r") as f:
157 version_match = re.search(r"^__version__\s*=\s*(.*)$", f.read(), re.MULTILINE)
158 public_version = ast.literal_eval(version_match.group(1))
159 local_version = os.environ.get("CAUSAL_CONV1D_LOCAL_VERSION")
160 if local_version:
161 return f"{public_version}+{local_version}"
162 else:
163 return str(public_version)
164
165
166def get_wheel_url():

Callers 2

get_wheel_urlFunction · 0.70
setup.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected