BUILD 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. load("@py_deps//:requirements.bzl", "requirement")
  5. load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
  6. load("@rules_python//python:pip.bzl", "compile_pip_requirements")
  7. py_library(
  8. name = "github_helpers",
  9. srcs = ["github_helpers.py"],
  10. deps = [requirement("gql")],
  11. )
  12. compile_pip_requirements(
  13. name = "requirements",
  14. src = "requirements.in",
  15. requirements_txt = "requirements.txt",
  16. )
  17. py_test(
  18. name = "github_helpers_test",
  19. size = "small",
  20. srcs = ["github_helpers_test.py"],
  21. deps = [":github_helpers"],
  22. )
  23. py_binary(
  24. name = "check_dependent_pr",
  25. srcs = ["check_dependent_pr.py"],
  26. deps = [":github_helpers"],
  27. )
  28. py_binary(
  29. name = "pr_comments",
  30. srcs = ["pr_comments.py"],
  31. deps = ["github_helpers"],
  32. )
  33. py_test(
  34. name = "check_dependent_pr_test",
  35. size = "small",
  36. srcs = ["check_dependent_pr_test.py"],
  37. deps = [":check_dependent_pr"],
  38. )
  39. py_test(
  40. name = "pr_comments_test",
  41. size = "small",
  42. srcs = ["pr_comments_test.py"],
  43. deps = [":pr_comments"],
  44. )