Skip to content

Commit

Permalink
Adding __version__ in packages that need HTTP.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Feb 21, 2017
1 parent e675367 commit 9a74ad0
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bigquery/google/cloud/bigquery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"""


from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-bigquery')

from google.cloud.bigquery._helpers import ArrayQueryParameter
from google.cloud.bigquery._helpers import ScalarQueryParameter
from google.cloud.bigquery._helpers import StructQueryParameter
Expand Down
3 changes: 3 additions & 0 deletions dns/google/cloud/dns/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"""


from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-dns')

from google.cloud.dns.zone import Changes
from google.cloud.dns.client import Client
from google.cloud.dns.zone import ManagedZone
Expand Down
3 changes: 3 additions & 0 deletions error_reporting/google/cloud/error_reporting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"""Client library for Stackdriver Error Reporting"""


from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-error-reporting')

from google.cloud.error_reporting.client import Client
from google.cloud.error_reporting.client import HTTPContext
from google.cloud.error_reporting.util import build_flask_context
3 changes: 3 additions & 0 deletions language/google/cloud/language/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"""Client library for Google Cloud Natural Language API."""


from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-language')

from google.cloud.language.client import Client
from google.cloud.language.document import Document
from google.cloud.language.document import Encoding
3 changes: 3 additions & 0 deletions logging/google/cloud/logging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"""Google Stackdriver Logging API wrapper."""


from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-logging')

from google.cloud.logging.client import Client


Expand Down
3 changes: 3 additions & 0 deletions monitoring/google/cloud/monitoring/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

"""Google Stackdriver Monitoring API wrapper."""

from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-monitoring')

from google.cloud.monitoring.client import Client
from google.cloud.monitoring.group import Group
from google.cloud.monitoring.label import LabelDescriptor
Expand Down
3 changes: 3 additions & 0 deletions pubsub/google/cloud/pubsub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"""


from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-pubsub')

from google.cloud.pubsub.client import Client
from google.cloud.pubsub.subscription import Subscription
from google.cloud.pubsub.topic import Topic
3 changes: 3 additions & 0 deletions resource_manager/google/cloud/resource_manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"""Google Cloud Resource Manager API wrapper."""


from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-resource-manager')

from google.cloud.resource_manager.client import Client
from google.cloud.resource_manager.project import Project

Expand Down
3 changes: 3 additions & 0 deletions runtimeconfig/google/cloud/runtimeconfig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@

"""Google Cloud Runtime Configurator API package."""

from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-runtimeconfig')

from google.cloud.runtimeconfig.client import Client
3 changes: 3 additions & 0 deletions speech/google/cloud/speech/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

"""Google Cloud Speech API wrapper."""

from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-speech')

from google.cloud.speech.alternative import Alternative
from google.cloud.speech.client import Client
from google.cloud.speech.encoding import Encoding
Expand Down
3 changes: 3 additions & 0 deletions translate/google/cloud/translate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

"""Google Cloud Translation API wrapper."""

from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-translate')

from google.cloud.translate.client import BASE
from google.cloud.translate.client import Client
from google.cloud.translate.client import NMT
3 changes: 3 additions & 0 deletions vision/google/cloud/vision/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@

"""Google Cloud Vision API package."""

from pkg_resources import get_distribution
__version__ = get_distribution('google-cloud-vision')

from google.cloud.vision.client import Client

0 comments on commit 9a74ad0

Please sign in to comment.