File tree 3 files changed +10
-2
lines changed 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
import pkg_resources
24
24
25
+ from google .api_core import version as api_core_version
26
+
25
27
_PY_VERSION = platform .python_version ()
26
- _API_CORE_VERSION = pkg_resources . get_distribution ( "google-api-core" ). version
28
+ _API_CORE_VERSION = api_core_version . __version__
27
29
28
30
try :
29
31
_GRPC_VERSION = pkg_resources .get_distribution ("grpcio" ).version
Original file line number Diff line number Diff line change
1
+ __version__ = "1.22.3"
Original file line number Diff line number Diff line change 22
22
23
23
name = "google-api-core"
24
24
description = "Google API client core library"
25
- version = "1.22.3"
25
+
26
+ version = {}
27
+ with open ("google/api_core/version.py" ) as fp :
28
+ exec (fp .read (), version )
29
+ version = version ['__version__' ]
30
+
26
31
# Should be one of:
27
32
# 'Development Status :: 3 - Alpha'
28
33
# 'Development Status :: 4 - Beta'
You can’t perform that action at this time.
0 commit comments