MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / get_version

Function get_version

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

Source from the content-addressed store, hash-verified

13
14# Read version from __init__.py
15def get_version():
16 init_file = Path(__file__).parent / "__init__.py"
17 if init_file.exists():
18 with open(init_file, "r") as f:
19 for line in f:
20 if line.startswith("__version__"):
21 return line.split("=")[1].strip().strip("\"'")
22 return "0.1.0"
23
24
25# Read long description from README

Callers 1

setup.pyFile · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected