This repository was archived by the owner on Mar 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
gapic/templates/%namespace/%name_%version/%sub Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,17 @@ from {{package_path}} import gapic_version as package_version
77
88__version__ = package_version.__version__
99
10+
11+ import google.api_core
12+
13+ {# How do we get the name of the PyPI path into this template? We
14+ want the string arguments below to be something like
15+ "google-cloud-foo (google.cloud.foo)", where the name outside the
16+ parentheses is the PyPI package name, and the the name inside the
17+ parentheses is the qualified Python package name installed. #}
18+ api_core.check_python_version("{package_path}")
19+ api_core.check_dependency_versions("{package_path}")
20+
1021{# Import subpackages. -#}
1122{% for subpackage , _ in api .subpackages |dictsort %}
1223from . import {{ subpackage }}
You can’t perform that action at this time.
0 commit comments