File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
gapic/templates/%namespace/%name_%version/%sub Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,17 @@ from {{package_path}} import gapic_version as package_version
7
7
8
8
__version__ = package_version.__version__
9
9
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
+
10
21
{# Import subpackages. -#}
11
22
{% for subpackage , _ in api .subpackages |dictsort %}
12
23
from . import {{ subpackage }}
You can’t perform that action at this time.
0 commit comments