Skip to content

Commit

Permalink
fix: Make gapic-generator-python compatible with protobuf 3.14.0 (pac…
Browse files Browse the repository at this point in the history
…kaged as native namespace package)

More details about Python namespace packaging here: https://packaging.python.org/guides/packaging-namespace-packages/#native-namespace-packages

The protobuf changes, which made this fix necessary are here:
protocolbuffers/protobuf#7902
protocolbuffers/protobuf#7908

The tracking bug for this issue (probably not the only one) googleapis/gapic-generator#3334

This is only part of the fix, for the proper fix other google-namespaced python packages must be changed as well.
  • Loading branch information
vam-google committed Jan 27, 2021
1 parent bcd3f54 commit 9a8e389
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Expand Up @@ -57,8 +57,8 @@ py_binary(
python_version = "PY3",
visibility = ["//visibility:public"],
deps = [
"@com_google_protobuf//:protobuf_python",
"@com_github_grpc_grpc//src/python/grpcio/grpc:grpcio",
requirement("protobuf"),
requirement("click"),
requirement("google-api-core"),
requirement("googleapis-common-protos"),
Expand Down
6 changes: 2 additions & 4 deletions WORKSPACE
Expand Up @@ -44,11 +44,9 @@ load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")

grpc_deps()

load("@upb//bazel:repository_defs.bzl", "bazel_version_repository")
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")

bazel_version_repository(
name = "bazel_version",
)
grpc_extra_deps()

load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")

Expand Down
2 changes: 1 addition & 1 deletion repositories.bzl
Expand Up @@ -15,7 +15,7 @@ def gapic_generator_python():
requirements = "@gapic_generator_python//:requirements.txt",
)

_protobuf_version = "3.13.0"
_protobuf_version = "3.14.0"
_protobuf_version_in_link = "v%s" % _protobuf_version
_maybe(
http_archive,
Expand Down

0 comments on commit 9a8e389

Please sign in to comment.