MCPcopy Create free account
hub / github.com/M4THYOU/TokenDagger / get_version

Function get_version

setup.py:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65# Read the version from __init__.py
66def get_version():
67 init_file = Path("tokendagger/__init__.py")
68 if init_file.exists():
69 with open(init_file) as f:
70 for line in f:
71 if line.startswith("__version__"):
72 return line.split("=")[1].strip().strip('"\'')
73 return "0.1.0"
74
75
76setup(

Callers 1

setup.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected