commit | 8b82ebe29cfd82458c54aa7efac201d07266b238 | [log] [tgz] |
---|---|---|
author | Jonathon Belotti <jonathon@canva.com> | Sat Dec 14 20:49:17 2019 +1100 |
committer | Jonathon Belotti <jonathon@canva.com> | Sat Dec 14 20:49:17 2019 +1100 |
tree | dd995ae052e736da4231673d9ab3d977e72613f8 | |
parent | 795934a45d974fcaf208dd4362d7354a8917b924 [diff] |
small tidy up of comment
Contains Bazel rules to fetch and install Python dependencies from a requirements.txt file.
In requirements.txt
cryptography==2.8 boto3==1.9.253
In WORKSPACE
rules_python_external_version = "{COMMIT_SHA}" git_repository( name = "rules_python_external", commit = rules_python_external_version, remote = "git@github.com:dillon-giacoppo/rules_python_external.git", shallow_since = "1572846707 +1100", ) load("@rules_python_external//:defs.bzl", "pip_repository") pip_repository( name = "py_deps", requirements = "//:requirements.txt", )
In BUILD
load("@py_deps//:requirements.bzl", "requirement") py_binary( name = "main", srcs = ["main.py"], deps = [ requirement("boto3"), # or @py_deps//pypi__boto3 ], )
bazel test //...