Skip to content

Commit 417b8f1

Browse files
committed
Add python version to runtime info
1 parent c5ac5ee commit 417b8f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/iterative_telemetry/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,11 @@ def _runtime_info(self):
146146
"""
147147
Gather information from the environment where DVC runs to fill a report
148148
"""
149+
major, minor, patch, *_ = sys.version_info
149150

150151
return {
152+
"python_version": f"{major}.{minor}.{patch}",
153+
"python_version_minor": f"{major}.{minor}",
151154
"tool_name": self.tool_name,
152155
"tool_version": self.tool_version,
153156
# "tool_source": self.tool_source, # TODO

0 commit comments

Comments
 (0)