Skip to content

Commit c8cc30e

Browse files
ondrasejcopybara-github
authored andcommitted
Bumped dependencies and updated the BUILD files to work with protobuf v23.2.
Bonus change: increased Bazel version to 6.2.1. PiperOrigin-RevId: 541553479
1 parent 10fc4b0 commit c8cc30e

File tree

3 files changed

+13
-25
lines changed

3 files changed

+13
-25
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1.0
1+
6.2.1

WORKSPACE

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ bazel_skylib_workspace()
1818

1919
http_archive(
2020
name = "com_google_absl",
21-
sha256 = "dcf71b9cba8dc0ca9940c4b316a0c796be8fab42b070bb6b7cab62b48f0e66c4", # SHARED_ABSL_SHA
22-
strip_prefix = "abseil-cpp-20211102.0",
21+
sha256 = "5366d7e7fa7ba0d915014d387b66d0d002c03236448e1ba9ef98122c13b35c36", # SHARED_ABSL_SHA
22+
strip_prefix = "abseil-cpp-20230125.3",
2323
urls = [
24-
"https://github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.tar.gz",
24+
"https://github.com/abseil/abseil-cpp/archive/refs/tags/20230125.3.tar.gz",
2525
],
2626
)
2727

@@ -35,25 +35,13 @@ http_archive(
3535
],
3636
)
3737

38-
# Six is a dependency of com_google_absl_py
39-
http_archive(
40-
name = "six_archive",
41-
urls = [
42-
"http://mirror.bazel.build/pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz",
43-
"https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz",
44-
],
45-
sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
46-
strip_prefix = "six-1.10.0",
47-
build_file = "@com_google_absl_py//third_party:six.BUILD",
48-
)
49-
5038
## `pybind11_bazel`
5139
# See https://github.com/pybind/pybind11_bazel
5240
http_archive(
5341
name = "pybind11_bazel",
54-
strip_prefix = "pybind11_bazel-72cbbf1fbc830e487e3012862b7b720001b70672",
55-
sha256 = "516c1b3a10d87740d2b7de6f121f8e19dde2c372ecbfe59aef44cd1872c10395",
56-
urls = ["https://github.com/pybind/pybind11_bazel/archive/72cbbf1fbc830e487e3012862b7b720001b70672.tar.gz"],
42+
strip_prefix = "pybind11_bazel-faf56fb3df11287f26dbc66fdedf60a2fc2c6631",
43+
sha256 = "a2b107b06ffe1049696e132d39987d80e24d73b131d87f1af581c2cb271232f8",
44+
urls = ["https://github.com/pybind/pybind11_bazel/archive/faf56fb3df11287f26dbc66fdedf60a2fc2c6631.tar.gz"],
5745
)
5846

5947
# We still require the pybind library.
@@ -65,16 +53,16 @@ http_archive(
6553
)
6654

6755
load("@pybind11_bazel//:python_configure.bzl", "python_configure")
68-
python_configure(name = "local_config_python")
56+
python_configure(name = "local_config_python", python_version = "3")
6957

7058
# proto_library, cc_proto_library, and java_proto_library rules implicitly
7159
# depend on @com_google_protobuf for protoc and proto runtimes.
7260
# This statement defines the @com_google_protobuf repo.
7361
http_archive(
7462
name = "com_google_protobuf",
75-
sha256 = "87407cd28e7a9c95d9f61a098a53cf031109d451a7763e7dd1253abf8b4df422",
76-
strip_prefix = "protobuf-3.19.1",
77-
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz"],
63+
sha256 = "0b0395d34e000f1229679e10d984ed7913078f3dd7f26cf0476467f5e65716f4",
64+
strip_prefix = "protobuf-23.2",
65+
urls = ["https://github.com/protocolbuffers/protobuf/archive/refs/tags/v23.2.tar.gz"],
7866
)
7967

8068
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

pybind11_protobuf/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ pybind_library(
6161
"@com_google_absl//absl/container:flat_hash_map",
6262
"@com_google_absl//absl/strings",
6363
"@com_google_absl//absl/types:optional",
64-
"@com_google_protobuf//:proto_api",
6564
"@com_google_protobuf//:protobuf",
65+
"@com_google_protobuf//python:proto_api",
6666
],
6767
)
6868

@@ -93,7 +93,7 @@ cc_library(
9393
"@com_google_absl//absl/meta:type_traits",
9494
"@com_google_absl//absl/strings",
9595
"@com_google_absl//absl/synchronization",
96-
"@com_google_protobuf//:proto_api",
9796
"@com_google_protobuf//:protobuf",
97+
"@com_google_protobuf//python:proto_api",
9898
],
9999
)

0 commit comments

Comments
 (0)