| workspace(name = "testing_python") |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| local_repository( |
| name = "tink_py", |
| path = "../../python", |
| ) |
| |
| local_repository( |
| name = "tink_cc", |
| path = "../../cc", |
| ) |
| |
| local_repository( |
| name = "tink_cc_awskms", |
| path = "../../cc/integration/awskms", |
| ) |
| |
| local_repository( |
| name = "tink_cc_gcpkms", |
| path = "../../cc/integration/gcpkms", |
| ) |
| |
| # NOTE: The Python dependencies have to be loaded first, as they rely on a |
| # newer version of rules_python. |
| load("@tink_py//:tink_py_deps.bzl", "tink_py_deps") |
| tink_py_deps() |
| |
| load("@tink_py//:tink_py_deps_init.bzl", "tink_py_deps_init") |
| tink_py_deps_init("tink_py") |
| |
| load("@tink_cc//:tink_cc_deps.bzl", "tink_cc_deps") |
| tink_cc_deps() |
| |
| load("@tink_cc//:tink_cc_deps_init.bzl", "tink_cc_deps_init") |
| tink_cc_deps_init() |
| |
| load("@tink_cc_awskms//:tink_cc_awskms_deps.bzl", "tink_cc_awskms_deps") |
| |
| tink_cc_awskms_deps() |
| |
| load("@tink_cc_gcpkms//:tink_cc_gcpkms_deps.bzl", "tink_cc_gcpkms_deps") |
| |
| tink_cc_gcpkms_deps() |
| |
| load("@tink_cc_gcpkms//:tink_cc_gcpkms_deps_init.bzl", "tink_cc_gcpkms_deps_init") |
| |
| tink_cc_gcpkms_deps_init() |
| |
| # Release from 2021-10-26 |
| http_archive( |
| name = "rules_python", |
| url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz", |
| sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332", |
| ) |
| |
| # Release from 2021-12-12 |
| http_archive( |
| name = "rules_proto_grpc", |
| urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/archive/4.1.0.tar.gz"], |
| sha256 = "8383116d4c505e93fd58369841814acc3f25bdb906887a2023980d8f49a0b95b", |
| strip_prefix = "rules_proto_grpc-4.1.0", |
| ) |
| |
| |
| http_archive( |
| name = "org_python_pypi_portpicker", |
| urls = [ |
| "https://pypi.python.org/packages/d9/f4/0188bc07d38b5f9dd192b8329c5e098e3b23552c01a96fd08973dba9e315/portpicker-1.3.1.tar.gz", |
| ], |
| sha256 = "d2cdc776873635ed421315c4d22e63280042456bbfa07397817e687b142b9667", |
| strip_prefix = "portpicker-1.3.1/src", |
| build_file = "portpicker.BUILD.bazel", |
| ) |
| |
| load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_toolchains", "rules_proto_grpc_repos") |
| rules_proto_grpc_toolchains() |
| rules_proto_grpc_repos() |
| |
| load("@rules_proto_grpc//python:repositories.bzl", rules_proto_grpc_python_repos="python_repos") |
| rules_proto_grpc_python_repos() |
| |
| load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") |
| |
| grpc_deps() |
| |
| load("@rules_python//python:pip.bzl", "pip_install") |
| |
| pip_install( |
| name = "pip_deps", |
| requirements = "//:requirements.txt", |
| ) |
| |
| pip_install( |
| name = "rules_proto_grpc_py3_deps", |
| requirements = "@rules_proto_grpc//python:requirements.txt", |
| ) |