Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit 5f5d709

Browse files
xinghuadou-googleXinghua Dou
authored andcommitted
Report Python version in the debuggee.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187896037
1 parent cba273e commit 5f5d709

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/googleclouddebugger/gcp_hub_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,13 +467,14 @@ def _QueryGcpProject(self, resource):
467467

468468
def _GetDebuggee(self):
469469
"""Builds the debuggee structure."""
470-
major_version = version.__version__.split('.')[0]
470+
major_version = 'v' + version.__version__.split('.')[0]
471+
python_version = 'python36-gcp' if six.PY3 else 'python27-gcp'
471472

472473
debuggee = {
473474
'project': self._project_number(),
474475
'description': self._GetDebuggeeDescription(),
475476
'labels': self._debuggee_labels,
476-
'agentVersion': 'google.com/python27-gcp/v' + major_version
477+
'agentVersion': 'google.com/%s/%s' % (python_version, major_version)
477478
}
478479

479480
source_context = self._ReadAppJsonFile('source-context.json')

src/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def ReadConfig(section, value, default):
113113
keywords='google cloud debugger',
114114
classifiers=[
115115
'Programming Language :: Python :: 2.7',
116+
'Programming Language :: Python :: 3.6',
116117
'Development Status :: 3 - Alpha',
117118
'Intended Audience :: Developers'
118119
])

0 commit comments

Comments
 (0)