aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorGravatar Lidi Zheng <lidiz@google.com>2018-12-12 17:16:12 -0800
committerGravatar Lidi Zheng <lidiz@google.com>2018-12-13 10:18:44 -0800
commit45b3230ef2b6a4a7e4c7a2348fa65b2c59fe579a (patch)
tree5a8d35128e0e9f38db851beced250d14197e64df /templates
parente9cae6bba38bc02062db5abcca4b6afa91ef30e8 (diff)
Add grpcio-status extension package
* The new package has 2 API `from_call` and `to_status` * Utilize the experimental API `abort_with_status` * Add 5 unit test cases
Diffstat (limited to 'templates')
-rw-r--r--templates/src/python/grpcio_status/grpc_version.py.template19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/src/python/grpcio_status/grpc_version.py.template b/templates/src/python/grpcio_status/grpc_version.py.template
new file mode 100644
index 0000000000..727e01edb9
--- /dev/null
+++ b/templates/src/python/grpcio_status/grpc_version.py.template
@@ -0,0 +1,19 @@
+%YAML 1.2
+--- |
+ # Copyright 2018 The gRPC Authors
+ #
+ # Licensed under the Apache License, Version 2.0 (the "License");
+ # you may not use this file except in compliance with the License.
+ # You may obtain a copy of the License at
+ #
+ # http://www.apache.org/licenses/LICENSE-2.0
+ #
+ # Unless required by applicable law or agreed to in writing, software
+ # distributed under the License is distributed on an "AS IS" BASIS,
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
+
+ # AUTO-GENERATED FROM `$REPO_ROOT/templates/src/python/grpcio_status/grpc_version.py.template`!!!
+
+ VERSION = '${settings.python_version.pep440()}'