diff options
author | Xuan Wang <xuanwn@google.com> | 2023-06-02 12:56:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 12:56:39 -0700 |
commit | a05e2e3bd2138f3ee2962edcf2f4bb77c44f2ccb (patch) | |
tree | e7f75f16c5aa48c4bd7eab983c56b2464aff2d61 | |
parent | b39e015f34a5f95f231b7b3006d3e518dcfce40a (diff) | |
download | grpc-grpc-a05e2e3bd2138f3ee2962edcf2f4bb77c44f2ccb.tar.gz |
[Bazel Python3.11] Update Bazel dependencies for Python 3.11 (v1.56.x backport) (#33329)
Backport of #33318 to v1.56.x.
---
We just found out that our current Bazel setup does not support Python
3.11.
This PR updates some dependencies to allow using Bazel in Python 3.11.
Cython:
* Cython [backported Python 3.11 support change to
0.29x](https://github.com/cython/cython/issues/4500), but it appears
that the Cython version we are using in Bazel does not include the fix,
so we're using the latest stable version instead.
Gevent:
* The first version of gevent that supports [Python 3.11 is
22.08.0](https://github.com/gevent/gevent/issues/1903#issuecomment-1303227507).
#### Testing
* Tested locally using Python 3.11 virtual environment, was able to
reproduce the issue and verified that those changes were able to fix it.
-rw-r--r-- | bazel/grpc_python_deps.bzl | 6 | ||||
-rw-r--r-- | requirements.bazel.txt | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bazel/grpc_python_deps.bzl b/bazel/grpc_python_deps.bzl index 0a809bf525..39893eef6e 100644 --- a/bazel/grpc_python_deps.bzl +++ b/bazel/grpc_python_deps.bzl @@ -39,9 +39,9 @@ def grpc_python_deps(): http_archive( name = "cython", build_file = "@com_github_grpc_grpc//third_party:cython.BUILD", - sha256 = "bb72b2f0ef029472759c711f0a4bded6e15e3f9bda3797550cef3c1d87d02283", - strip_prefix = "cython-0.29.26", + sha256 = "a2da56cc22be823acf49741b9aa3aa116d4f07fa8e8b35a3cb08b8447b37c607", + strip_prefix = "cython-0.29.35", urls = [ - "https://github.com/cython/cython/archive/0.29.26.tar.gz", + "https://github.com/cython/cython/archive/0.29.35.tar.gz", ], ) diff --git a/requirements.bazel.txt b/requirements.bazel.txt index 27ddb2bc03..f2dbfd7af8 100644 --- a/requirements.bazel.txt +++ b/requirements.bazel.txt @@ -11,7 +11,7 @@ chardet==3.0.4 certifi==2017.4.17 idna==2.7 googleapis-common-protos==1.5.5 -gevent==21.12.0 +gevent==22.08.0 zope.event==4.5.0 setuptools==44.1.1 xds-protos==0.0.11 |