MCPcopy Create free account
hub / github.com/Kaggle/docker-python / get_version

Function get_version

tools/pip_list_versions.py:22–27  ·  view source on GitHub ↗
(show_stdout)

Source from the content-addressed store, hash-verified

20 pip_show(dependency, packages=packages)
21
22def get_version(show_stdout):
23 for line in show_stdout.split("\n"):
24 m = re.match(r"^Version:\s(?P<version>.+)$", line)
25 if m:
26 return m.group('version')
27 return "not found"
28
29def get_dependencies(show_stdout):
30 for line in show_stdout.split("\n"):

Callers 1

pip_showFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected