File tree 3 files changed +27
-1
lines changed
3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import logging
18
18
19
+ from google .auth import version as google_auth_version
19
20
from google .auth ._default import default , load_credentials_from_file
20
21
22
+
23
+ __version__ = google_auth_version .__version__
24
+
25
+
21
26
__all__ = ["default" , "load_credentials_from_file" ]
22
27
23
28
# Set default logging handler to avoid "No handler found" warnings.
Original file line number Diff line number Diff line change
1
+ # Copyright 2021 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.27.1"
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
import io
16
+ import os
16
17
17
18
from setuptools import find_packages
18
19
from setuptools import setup
37
38
with io .open ("README.rst" , "r" ) as fh :
38
39
long_description = fh .read ()
39
40
40
- version = "1.27.1"
41
+ package_root = os .path .abspath (os .path .dirname (__file__ ))
42
+
43
+ version = {}
44
+ with open (os .path .join (package_root , "google/auth/version.py" )) as fp :
45
+ exec (fp .read (), version )
46
+ version = version ["__version__" ]
41
47
42
48
setup (
43
49
name = "google-auth" ,
You can’t perform that action at this time.
0 commit comments