Skip to content

Commit 314071c

Browse files
authored
chore: fix the module imports error for gapic (#1504)
1 parent 48c0dc0 commit 314071c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def default(session, install_extras=True):
101101
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
102102
)
103103
# Install all test dependencies, then install this package in-place.
104-
session.install("mock", "pytest", "pytest-cov", "brotli", "grpcio", "grpcio-status", "-c", constraints_path)
104+
session.install("mock", "pytest", "pytest-cov", "brotli", "grpcio", "grpcio-status", "proto-plus", "-c", constraints_path)
105105

106106
if install_extras:
107107
session.install("opentelemetry-api", "opentelemetry-sdk")

owlbot.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
default_version = json.load(open(".repo-metadata.json", "rt")).get("default_version")
2929

3030
for library in s.get_staging_dirs(default_version):
31+
s.replace(
32+
"google/cloud/storage_v2/__init__.py",
33+
"from google.cloud.storage_v2 import gapic_version as package_version",
34+
"from . import gapic_version as package_version"
35+
)
36+
3137
s.move(
3238
[library],
3339
excludes=[

0 commit comments

Comments
 (0)