This repository was archived by the owner on Aug 30, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515"""Google Cloud Bigtable API package."""
1616
1717
18- from pkg_resources import get_distribution
18+ import pkg_resources
19+
20+ try :
21+ __version__ = pkg_resources .get_distribution ("google-cloud-bigtable" ).version
22+ except pkg_resources .DistributionNotFound :
23+ __version__ = None
1924
20- __version__ = get_distribution ("google-cloud-bigtable" ).version
2125
2226from google .cloud .bigtable .client import Client
2327
Original file line number Diff line number Diff line change 4949from google .protobuf import field_mask_pb2
5050
5151
52- _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution (
53- "google-cloud-bigtable" ,
54- ).version
52+ try :
53+ _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution (
54+ "google-cloud-bigtable"
55+ ).version
56+ except pkg_resources .DistributionNotFound :
57+ _GAPIC_LIBRARY_VERSION = None
5558
5659
5760class BigtableInstanceAdminClient (object ):
Original file line number Diff line number Diff line change 5454from google .protobuf import field_mask_pb2
5555
5656
57- _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution (
58- "google-cloud-bigtable" ,
59- ).version
57+ import pkg_resources
58+
59+ try :
60+ _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution (
61+ "google-cloud-bigtable"
62+ ).version
63+ except pkg_resources .DistributionNotFound :
64+ _GAPIC_LIBRARY_VERSION = None
6065
6166
6267class BigtableTableAdminClient (object ):
Original file line number Diff line number Diff line change 3636from google .cloud .bigtable_v2 .proto import data_pb2
3737
3838
39- _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution (
40- "google-cloud-bigtable" ,
41- ).version
39+ try :
40+ _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution (
41+ "google-cloud-bigtable"
42+ ).version
43+ except pkg_resources .DistributionNotFound :
44+ _GAPIC_LIBRARY_VERSION = None
4245
4346
4447class BigtableClient (object ):
You can’t perform that action at this time.
0 commit comments