File tree 4 files changed +25
-5
lines changed
4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 27
27
import json
28
28
import logging
29
29
import platform
30
- import pkg_resources
31
30
32
31
from six .moves .urllib .parse import urlencode
33
32
33
+ from googleapiclient import version as googleapiclient_version
34
34
from googleapiclient .errors import HttpError
35
35
36
- _LIBRARY_VERSION = pkg_resources . get_distribution ( "google-api-python-client" ). version
36
+ _LIBRARY_VERSION = googleapiclient_version . __version__
37
37
_PY_VERSION = platform .python_version ()
38
38
39
39
LOGGER = logging .getLogger (__name__ )
Original file line number Diff line number Diff line change
1
+ # Copyright 2022 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.12.0"
Original file line number Diff line number Diff line change 53
53
with io .open (readme_filename , encoding = "utf-8" ) as readme_file :
54
54
readme = readme_file .read ()
55
55
56
- version = "1.12.10"
56
+ package_root = os .path .abspath (os .path .dirname (__file__ ))
57
+
58
+ version = {}
59
+ with open (os .path .join (package_root , "googleapiclient/version.py" )) as fp :
60
+ exec (fp .read (), version )
61
+ version = version ["__version__" ]
57
62
58
63
setup (
59
64
name = "google-api-python-client" ,
Original file line number Diff line number Diff line change 26
26
import copy
27
27
import json
28
28
import os
29
- import pkg_resources
30
29
import platform
31
30
import unittest2 as unittest
32
31
import httplib2
33
32
import googleapiclient .model
34
33
34
+ from googleapiclient import version as googleapiclient_version
35
35
from googleapiclient .errors import HttpError
36
36
from googleapiclient .model import JsonModel
37
37
38
38
from six .moves .urllib .parse import parse_qs
39
39
40
- _LIBRARY_VERSION = pkg_resources . get_distribution ( "google-api-python-client" ). version
40
+ _LIBRARY_VERSION = googleapiclient_version . __version__
41
41
42
42
43
43
class Model (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments