workspace(name = "examples_python") # load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # The local_repository() rule is used below because the workspaces referenced # are all located within the Tink git repository. # # To replicate this setup in a workspace located in a separate repository, you # can use the equivalent, commented-out http_archive() rules below as a # starting point. # # See the Tink Python HOW-TO for more details: # https://github.com/google/tink/blob/master/docs/PYTHON-HOWTO.md local_repository( name = "tink_py", path = "../../python", ) # http_archive( # name = "tink_py", # urls = ["https://github.com/google/tink/archive/master.zip"], # strip_prefix = "tink-master/python", # ) local_repository( name = "tink_cc", path = "../../cc", ) # http_archive( # name = "tink_cc", # urls = ["https://github.com/google/tink/archive/master.zip"], # strip_prefix = "tink-master/cc", # ) # Load Tink dependencies. 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("@rules_python//python:pip.bzl", "pip_install") pip_install( name = "pip_deps", quiet = False, requirements = "@examples_python//:requirements.txt", )