| workspace(name = "pip_example") |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "rules_python", |
| url = "https://github.com/bazelbuild/rules_python/releases/download/0.0.3/rules_python-0.0.3.tar.gz", |
| sha256 = "e46612e9bb0dae8745de6a0643be69e8665a03f63163ac6610c210e80d14c3e4", |
| ) |
| |
| load("@rules_python//python/legacy_pip_import:pip.bzl", "pip_import", "pip_repositories") |
| |
| pip_repositories() |
| |
| pip_import( |
| name = "helloworld_deps", |
| requirements = "//helloworld:requirements.txt", |
| ) |
| |
| load("@helloworld_deps//:requirements.bzl", _helloworld_install = "pip_install") |
| |
| _helloworld_install() |
| |
| pip_import( |
| name = "boto_deps", |
| requirements = "//boto:requirements.txt", |
| ) |
| |
| load("@boto_deps//:requirements.bzl", _boto_install = "pip_install") |
| |
| _boto_install() |
| |
| pip_import( |
| name = "extras_deps", |
| requirements = "//extras:requirements.txt", |
| ) |
| |
| load("@extras_deps//:requirements.bzl", _extras_install = "pip_install") |
| |
| _extras_install() |