Skip to content

Commit a7621c2

Browse files
committed
skip generation for google-cloud-bigtable which has failing tests
1 parent 0b06da3 commit a7621c2

21 files changed

Lines changed: 44 additions & 103 deletions

File tree

librarian.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ libraries:
643643
apis:
644644
- path: google/bigtable/v2
645645
- path: google/bigtable/admin/v2
646+
skip_generate: true
646647
python:
647648
library_type: GAPIC_COMBO
648649
opt_args_by_api:

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/__init__.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,6 @@
2323

2424
from importlib import metadata
2525

26-
# PEP 0810: Explicit Lazy Imports
27-
# Python 3.15+ natively intercepts and defers these imports.
28-
# Developers can disable this behavior and force eager imports.
29-
# For more information, see:
30-
# https://docs.python.org/3.15/library/sys.html#sys.set_lazy_imports_filter
31-
# Older Python versions safely ignore this variable.
32-
__lazy_modules__ = {
33-
"google.cloud.bigtable_admin_v2.services.bigtable_instance_admin",
34-
"google.cloud.bigtable_admin_v2.services.bigtable_table_admin",
35-
"google.cloud.bigtable_admin_v2.types.bigtable_instance_admin",
36-
"google.cloud.bigtable_admin_v2.types.bigtable_table_admin",
37-
"google.cloud.bigtable_admin_v2.types.common",
38-
"google.cloud.bigtable_admin_v2.types.instance",
39-
"google.cloud.bigtable_admin_v2.types.table",
40-
"google.cloud.bigtable_admin_v2.types.types",
41-
}
42-
43-
4426
from .services.bigtable_instance_admin import (
4527
BigtableInstanceAdminAsyncClient,
4628
BigtableInstanceAdminClient,

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/async_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4343,7 +4343,9 @@ async def __aexit__(self, exc_type, exc, tb):
43434343
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
43444344
gapic_version=package_version.__version__
43454345
)
4346-
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
4346+
4347+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
4348+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
43474349

43484350

43494351
__all__ = ("BigtableInstanceAdminAsyncClient",)

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4832,6 +4832,8 @@ def __exit__(self, type, value, traceback):
48324832
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
48334833
gapic_version=package_version.__version__
48344834
)
4835-
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
4835+
4836+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
4837+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
48364838

48374839
__all__ = ("BigtableInstanceAdminClient",)

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
3636
gapic_version=package_version.__version__
3737
)
38-
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
38+
39+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
40+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
3941

4042

4143
class BigtableInstanceAdminTransport(abc.ABC):

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/rest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
rest_version=f"requests@{requests_version}",
5858
)
5959

60-
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
60+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
61+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
6162

6263

6364
class BigtableInstanceAdminRestInterceptor:

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/async_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4961,7 +4961,9 @@ async def __aexit__(self, exc_type, exc, tb):
49614961
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
49624962
gapic_version=package_version.__version__
49634963
)
4964-
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
4964+
4965+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
4966+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
49654967

49664968

49674969
__all__ = ("BaseBigtableTableAdminAsyncClient",)

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5449,6 +5449,8 @@ def __exit__(self, type, value, traceback):
54495449
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
54505450
gapic_version=package_version.__version__
54515451
)
5452-
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
5452+
5453+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
5454+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
54535455

54545456
__all__ = ("BaseBigtableTableAdminClient",)

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
3737
gapic_version=package_version.__version__
3838
)
39-
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
39+
40+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
41+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
4042

4143

4244
class BigtableTableAdminTransport(abc.ABC):

packages/google-cloud-bigtable/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/rest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
rest_version=f"requests@{requests_version}",
5959
)
6060

61-
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
61+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
62+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
6263

6364

6465
class BigtableTableAdminRestInterceptor:

0 commit comments

Comments
 (0)