Add pip_install to the build. (#435)

Updates corresponding tool instructions.
This commit is contained in:
Jon Meow
2021-04-07 09:08:02 -07:00
committed by GitHub
parent e324935139
commit b4593f5133
4 changed files with 35 additions and 16 deletions
+6 -1
View File
@@ -3,10 +3,12 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
load("@py_deps//:requirements.bzl", "requirement")
py_library(
name = "github_helpers",
srcs = ["github_helpers.py"],
deps = [requirement("gql")],
)
py_test(
@@ -34,7 +36,10 @@ py_binary(
name = "update_label_access",
srcs = ["update_label_access.py"],
python_version = "PY3",
deps = ["github_helpers"],
deps = [
"github_helpers",
requirement("pygithub"),
],
)
py_test(
+7
View File
@@ -0,0 +1,7 @@
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Python dependencies, consumed by /WORKSPACE.
gql
PyGitHub