forked from carbon-language/carbon-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
42 lines (36 loc) · 1.05 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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
load("@py_deps//:requirements.bzl", "requirement")
load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
py_library(
name = "github_helpers",
srcs = ["github_helpers.py"],
deps = [requirement("gql")],
)
compile_pip_requirements(
name = "requirements",
src = "requirements.in",
requirements_txt = "requirements.txt",
)
py_test(
name = "github_helpers_test",
size = "small",
srcs = ["github_helpers_test.py"],
python_version = "PY3",
deps = [":github_helpers"],
)
py_binary(
name = "pr_comments",
srcs = ["pr_comments.py"],
python_version = "PY3",
deps = ["github_helpers"],
)
py_test(
name = "pr_comments_test",
size = "small",
srcs = ["pr_comments_test.py"],
python_version = "PY3",
deps = [":pr_comments"],
)