MCPcopy Index your code
hub / github.com/kyegomez/BitNet / get_package_version

Function get_package_version

setup.py:159–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157
158
159def 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
170def get_wheel_url():

Callers 2

get_wheel_urlFunction · 0.85
setup.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected