From 52bf6e589a0251ae1911b19e345f34285749c3da Mon Sep 17 00:00:00 2001 From: Antonio Kim Date: Thu, 23 Jul 2026 20:00:41 -0700 Subject: [PATCH] Update pybind11 to v3.0.1 --- .bazelversion | 1 + MODULE.bazel | 2 +- WORKSPACE | 11 ++++----- pybind11_protobuf/requirements/BUILD | 6 ----- .../requirements/requirements_lock_3_8.txt | 23 ------------------- 5 files changed, 6 insertions(+), 37 deletions(-) create mode 100644 .bazelversion delete mode 100644 pybind11_protobuf/requirements/requirements_lock_3_8.txt diff --git a/.bazelversion b/.bazelversion new file mode 100644 index 0000000..df5119e --- /dev/null +++ b/.bazelversion @@ -0,0 +1 @@ +8.7.0 diff --git a/MODULE.bazel b/MODULE.bazel index b87ee06..79e502c 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -12,7 +12,7 @@ bazel_dep(name = "abseil-py", version = "2.1.0", repo_name = "com_google_absl_py bazel_dep(name = "platforms", version = "0.0.10") bazel_dep(name = "rules_cc", version = "0.0.15") bazel_dep(name = "rules_python", version = "0.40.0") -bazel_dep(name = "pybind11_bazel", version = "2.13.6") +bazel_dep(name = "pybind11_bazel", version = "3.0.1") bazel_dep(name = "pybind11_abseil", version = "202402.0") bazel_dep(name = "protobuf", version = "29.2", repo_name = "com_google_protobuf") bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") diff --git a/WORKSPACE b/WORKSPACE index d4a925b..a61e6d5 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -70,7 +70,6 @@ python_register_multi_toolchains( "3.11", "3.10", "3.9", - "3.8" ], ) @@ -84,14 +83,12 @@ multi_pip_parse( "3.11": "@python_3_11_host//:python", "3.10": "@python_3_10_host//:python", "3.9": "@python_3_9_host//:python", - "3.8": "@python_3_8_host//:python", }, requirements_lock = { "3.12": "//pybind11_protobuf/requirements:requirements_lock_3_12.txt", "3.11": "//pybind11_protobuf/requirements:requirements_lock_3_11.txt", "3.10": "//pybind11_protobuf/requirements:requirements_lock_3_10.txt", "3.9": "//pybind11_protobuf/requirements:requirements_lock_3_9.txt", - "3.8": "//pybind11_protobuf/requirements:requirements_lock_3_8.txt", }, ) @@ -102,8 +99,8 @@ install_deps() # https://github.com/pybind/pybind11_bazel git_repository( name = "pybind11_bazel", - commit = "2b6082a4d9d163a52299718113fa41e4b7978db5", - #tag = "v2.13.6", # 2024/10/21 + commit = "d5f6a112138c672daec4ca279f33baae95ca10ec", + #tag = "v3.0.1", # 2026/03/19 remote = "https://github.com/pybind/pybind11_bazel.git", ) @@ -112,8 +109,8 @@ git_repository( new_git_repository( name = "pybind11", build_file = "@pybind11_bazel//:pybind11-BUILD.bazel", - commit = "a2e59f0e7065404b44dfe92a28aca47ba1378dc4", - #tag = "v2.13.6", + commit = "f5fbe867d2d26e4a0a9177a51f6e568868ad3dc8", + #tag = "v3.0.1", remote = "https://github.com/pybind/pybind11.git", ) diff --git a/pybind11_protobuf/requirements/BUILD b/pybind11_protobuf/requirements/BUILD index 03545e1..00c9ab1 100644 --- a/pybind11_protobuf/requirements/BUILD +++ b/pybind11_protobuf/requirements/BUILD @@ -6,7 +6,6 @@ load("@python//3.12:defs.bzl", compile_pip_requirements_3_12 = "compile_pip_requ load("@python//3.11:defs.bzl", compile_pip_requirements_3_11 = "compile_pip_requirements") load("@python//3.10:defs.bzl", compile_pip_requirements_3_10 = "compile_pip_requirements") load("@python//3.9:defs.bzl", compile_pip_requirements_3_9 = "compile_pip_requirements") -load("@python//3.8:defs.bzl", compile_pip_requirements_3_8 = "compile_pip_requirements") compile_pip_requirements_3_12( name = "requirements_3_12", src = "requirements.in", @@ -27,8 +26,3 @@ compile_pip_requirements_3_9( src = "requirements.in", requirements_txt = "requirements_lock_3_9.txt", ) -compile_pip_requirements_3_8( - name = "requirements_3_8", - src = "requirements.in", - requirements_txt = "requirements_lock_3_8.txt", -) diff --git a/pybind11_protobuf/requirements/requirements_lock_3_8.txt b/pybind11_protobuf/requirements/requirements_lock_3_8.txt deleted file mode 100644 index 2b8fbed..0000000 --- a/pybind11_protobuf/requirements/requirements_lock_3_8.txt +++ /dev/null @@ -1,23 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.8 -# by the following command: -# -# bazel run //pybind11_protobuf/requirements:requirements_3_8.update -# -absl-py==2.1.0 \ - --hash=sha256:526a04eadab8b4ee719ce68f204172ead1027549089702d99b9059f129ff1308 \ - --hash=sha256:7820790efbb316739cde8b4e19357243fc3608a152024288513dd968d7d959ff - # via -r pybind11_protobuf/requirements/requirements.in -protobuf==5.29.2 \ - --hash=sha256:13d6d617a2a9e0e82a88113d7191a1baa1e42c2cc6f5f1398d3b054c8e7e714a \ - --hash=sha256:2d2e674c58a06311c8e99e74be43e7f3a8d1e2b2fdf845eaa347fbd866f23355 \ - --hash=sha256:36000f97ea1e76e8398a3f02936aac2a5d2b111aae9920ec1b769fc4a222c4d9 \ - --hash=sha256:494229ecd8c9009dd71eda5fd57528395d1eacdf307dbece6c12ad0dd09e912e \ - --hash=sha256:842de6d9241134a973aab719ab42b008a18a90f9f07f06ba480df268f86432f9 \ - --hash=sha256:a0c53d78383c851bfa97eb42e3703aefdc96d2036a41482ffd55dc5f529466eb \ - --hash=sha256:b2cc8e8bb7c9326996f0e160137b0861f1a82162502658df2951209d0cb0309e \ - --hash=sha256:b6b0d416bbbb9d4fbf9d0561dbfc4e324fd522f61f7af0fe0f282ab67b22477e \ - --hash=sha256:c12ba8249f5624300cf51c3d0bfe5be71a60c63e4dcf51ffe9a68771d958c851 \ - --hash=sha256:e621a98c0201a7c8afe89d9646859859be97cb22b8bf1d8eacfd90d5bda2eb19 \ - --hash=sha256:fde4554c0e578a5a0bcc9a276339594848d1e89f9ea47b4427c80e5d72f90181 - # via -r pybind11_protobuf/requirements/requirements.in