MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / get_version

Function get_version

cli-python/setup.py:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8# Read version from package
9def get_version():
10 version_file = os.path.join(os.path.dirname(__file__), 'datakit_local', '__init__.py')
11 with open(version_file, 'r') as f:
12 for line in f:
13 if line.startswith('__version__'):
14 return line.split('=')[1].strip().strip('"').strip("'")
15 return "0.1.0"
16
17setup(
18 name="datakit-local",

Callers 4

setup.pyFile · 0.85
get_system_infoFunction · 0.85
versionFunction · 0.85
updateFunction · 0.85

Calls 1

openFunction · 0.50

Tested by

no test coverage detected