Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions google/auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@

import logging

from google.auth import version as google_auth_version
from google.auth._default import default, load_credentials_from_file


__version__ = google_auth_version.__version__


__all__ = ["default", "load_credentials_from_file"]

# Set default logging handler to avoid "No handler found" warnings.
Expand Down
15 changes: 15 additions & 0 deletions google/auth/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "1.27.1"
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

import io
import os

from setuptools import find_packages
from setuptools import setup
Expand All @@ -37,7 +38,12 @@
with io.open("README.rst", "r") as fh:
long_description = fh.read()

version = "1.27.1"
package_root = os.path.abspath(os.path.dirname(__file__))

version = {}
with open(os.path.join(package_root, "google/auth/version.py")) as fp:
exec(fp.read(), version)
version = version["__version__"]

setup(
name="google-auth",
Expand Down