File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
packages/google-cloud-datastore/google/cloud/datastore Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 5454"""
5555
5656
57+ from pkg_resources import get_distribution
58+ __version__ = get_distribution ('google-cloud-datastore' ).version
59+
5760from google .cloud .datastore .batch import Batch
5861from google .cloud .datastore .client import Client
5962from google .cloud .datastore .entity import Entity
Original file line number Diff line number Diff line change 1515"""Connections to Google Cloud Datastore API servers."""
1616
1717import os
18- from pkg_resources import get_distribution
1918
2019from google .rpc import status_pb2
2120
2423from google .cloud .environment_vars import GCD_HOST
2524from google .cloud import exceptions
2625from google .cloud .grpc .datastore .v1 import datastore_pb2 as _datastore_pb2
26+
27+ from google .cloud .datastore import __version__
2728try :
2829 from google .cloud .datastore ._gax import _DatastoreAPIOverGRPC
2930 _HAVE_GRPC = True
3738
3839_DISABLE_GRPC = os .getenv (DISABLE_GRPC , False )
3940_USE_GRPC = _HAVE_GRPC and not _DISABLE_GRPC
40- _DATASTORE_DIST = get_distribution ('google-cloud-datastore' )
41- _CLIENT_INFO = connection_module .CLIENT_INFO_TEMPLATE .format (
42- _DATASTORE_DIST .version )
41+ _CLIENT_INFO = connection_module .CLIENT_INFO_TEMPLATE .format (__version__ )
4342
4443
4544class _DatastoreAPIOverHttp (object ):
You can’t perform that action at this time.
0 commit comments