From 2716838fb739c9350eee2c95b5cf207c4d83423d Mon Sep 17 00:00:00 2001 From: Christopher Wilcox Date: Mon, 9 Nov 2020 10:08:44 -0800 Subject: [PATCH 1/5] docs: fix a few typos (#690) --- docs/getting-started/bazel.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/getting-started/bazel.rst b/docs/getting-started/bazel.rst index 428b43ed95..1e67bfa045 100644 --- a/docs/getting-started/bazel.rst +++ b/docs/getting-started/bazel.rst @@ -67,9 +67,9 @@ available in the ``google/cloud/documentai/v1beta2/`` subdirectory. Creating the Targets ~~~~~~~~~~~~~~~~~~~~ -To build somethign with bazel you need to create the corresponding tagets in -your ``BUIDL.bazel`` file. You can use the Python section of the Document AI -`BUIDL.bazel`_ file as an example: +To build something with bazel you need to create the corresponding targets in +your ``BUILD.bazel`` file. You can use the Python section of the Document AI +`BUILD.bazel`_ file as an example: .. code-block:: python @@ -94,7 +94,7 @@ your ``BUIDL.bazel`` file. You can use the Python section of the Document AI ":documentai_py_gapic", ], ) -.. _BUIDL.bazel: https://github.com/googleapis/googleapis/blob/master/google/cloud/documentai/v1beta2/BUILD.bazel +.. _BUILD.bazel: https://github.com/googleapis/googleapis/blob/master/google/cloud/documentai/v1beta2/BUILD.bazel Compiling an API ~~~~~~~~~~~~~~~~ From 2e3847315303fe802e47e4ebce5d5fc091475a78 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 9 Nov 2020 10:25:21 -0800 Subject: [PATCH 2/5] chore: release 0.35.10 (#691) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 410936c34a..77ea9b7ad9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.35.10](https://www.github.com/googleapis/gapic-generator-python/compare/v0.35.9...v0.35.10) (2020-11-09) + + +### Documentation + +* fix a few typos ([#690](https://www.github.com/googleapis/gapic-generator-python/issues/690)) ([2716838](https://www.github.com/googleapis/gapic-generator-python/commit/2716838fb739c9350eee2c95b5cf207c4d83423d)) + ### [0.35.9](https://www.github.com/googleapis/gapic-generator-python/compare/v0.35.8...v0.35.9) (2020-10-27) diff --git a/setup.py b/setup.py index c00816cedb..16fef93d78 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__)) -version = "0.35.9" +version = "0.35.10" with io.open(os.path.join(PACKAGE_ROOT, "README.rst")) as file_obj: README = file_obj.read() From e1d4a4ae768a631f6e6dc28f2acfde8be8dc4a8f Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Thu, 12 Nov 2020 11:41:12 -0700 Subject: [PATCH 3/5] fix: add enums to types/__init__.py (#695) --- .../%name_%version/%sub/types/__init__.py.j2 | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/gapic/templates/%namespace/%name_%version/%sub/types/__init__.py.j2 b/gapic/templates/%namespace/%name_%version/%sub/types/__init__.py.j2 index 4ebdec8677..7b25899bc5 100644 --- a/gapic/templates/%namespace/%name_%version/%sub/types/__init__.py.j2 +++ b/gapic/templates/%namespace/%name_%version/%sub/types/__init__.py.j2 @@ -1,13 +1,22 @@ {% extends '_base.py.j2' %} {% block content %} -{% for p in api.protos.values() if p.file_to_generate and p.messages -%} -from .{{p.module_name }} import ({% for m in p.messages.values() %}{{ m.name }}, {% endfor %}) -{% endfor %} +{%- for proto in api.protos.values() if proto.file_to_generate and proto.messages %} +from .{{proto.module_name }} import ( + {%- for message in proto.messages.values() %} + {{message.name }}, {% endfor %} + {%- for enum in proto.enums.values() %} + {{ enum.name }}, {% endfor %} +){% endfor %} __all__ = ( - {%- for p in api.protos.values() if p.file_to_generate %}{% for m in p.messages.values() %} - '{{ m.name }}', - {%- endfor %}{% endfor %} + {%- for proto in api.protos.values() if proto.file_to_generate %} + {%- for message in proto.messages.values() %} + '{{ message.name }}', + {%- endfor -%} + {%- for enum in proto.enums.values() %} + '{{ enum.name }}', + {%- endfor -%} + {%- endfor %} ) {% endblock %} From ea3e5198862881f5b142638df6ea604654f81f82 Mon Sep 17 00:00:00 2001 From: Mira Leung Date: Thu, 12 Nov 2020 10:50:10 -0800 Subject: [PATCH 4/5] fix: update protobuf version [gapic-generator-python] (#696) --- repositories.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repositories.bzl b/repositories.bzl index 9af2d302de..03e0e1cb64 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -16,7 +16,7 @@ def gapic_generator_python(): requirements = "@gapic_generator_python//:requirements.txt", ) - _protobuf_version = "3.11.2" + _protobuf_version = "3.13.0" _protobuf_version_in_link = "v%s" % _protobuf_version _maybe( http_archive, From b85cbd4d7f4adfb42de420441e3fa9ea94a71459 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Nov 2020 18:56:19 +0000 Subject: [PATCH 5/5] chore: release 0.35.11 (#697) :robot: I have created a release \*beep\* \*boop\* --- ### [0.35.11](https://www.github.com/googleapis/gapic-generator-python/compare/v0.35.10...v0.35.11) (2020-11-12) ### Bug Fixes * add enums to types/__init__.py ([#695](https://www.github.com/googleapis/gapic-generator-python/issues/695)) ([e1d4a4a](https://www.github.com/googleapis/gapic-generator-python/commit/e1d4a4ae768a631f6e6dc28f2acfde8be8dc4a8f)) * update protobuf version [gapic-generator-python] ([#696](https://www.github.com/googleapis/gapic-generator-python/issues/696)) ([ea3e519](https://www.github.com/googleapis/gapic-generator-python/commit/ea3e5198862881f5b142638df6ea604654f81f82)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77ea9b7ad9..c9553df4bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [0.35.11](https://www.github.com/googleapis/gapic-generator-python/compare/v0.35.10...v0.35.11) (2020-11-12) + + +### Bug Fixes + +* add enums to types/__init__.py ([#695](https://www.github.com/googleapis/gapic-generator-python/issues/695)) ([e1d4a4a](https://www.github.com/googleapis/gapic-generator-python/commit/e1d4a4ae768a631f6e6dc28f2acfde8be8dc4a8f)) +* update protobuf version [gapic-generator-python] ([#696](https://www.github.com/googleapis/gapic-generator-python/issues/696)) ([ea3e519](https://www.github.com/googleapis/gapic-generator-python/commit/ea3e5198862881f5b142638df6ea604654f81f82)) + ### [0.35.10](https://www.github.com/googleapis/gapic-generator-python/compare/v0.35.9...v0.35.10) (2020-11-09)