xref: /aosp_15_r20/external/grpc-grpc/test/distrib/bazel/python/WORKSPACE (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1# TODO: Move to test/distrib/python.
2
3local_repository(
4    name = "com_github_grpc_grpc",
5    path = "../../../..",
6)
7
8# Ensure rules don't rely on __main__ naming convention.
9workspace(name = "python_test_repo")
10
11load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
12
13grpc_deps()
14
15load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
16
17grpc_extra_deps()
18
19load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
20
21bazel_skylib_workspace()
22
23local_repository(
24    name = "some_other_repo",
25    path = "../python_second_test_repo",
26)
27
28load("@com_google_protobuf//bazel:system_python.bzl", "system_python")
29
30system_python(
31    name = "system_python",
32    minimum_python_version = "3.7",
33)
34
35load("@system_python//:pip.bzl", "pip_parse")
36
37pip_parse(
38    name = "pip_deps",
39    requirements = "@com_google_protobuf//python:requirements.txt",
40    requirements_overrides = {
41        "3.11": "@com_google_protobuf//python:requirements_311.txt",
42    },
43)
44