File tree 4 files changed +26
-5
lines changed
4 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 17
17
This package contains common code and utilties used by Google client libraries.
18
18
"""
19
19
20
- from pkg_resources import get_distribution
20
+ from google . api_core import version as api_core_version
21
21
22
-
23
- __version__ = get_distribution ("google-api-core" ).version
22
+ __version__ = api_core_version .__version__
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
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ __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