BUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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("@mypy_integration//:mypy.bzl", "mypy_test")
  5. py_library(
  6. name = "proposal_list",
  7. srcs = ["proposal_list.py"],
  8. )
  9. py_test(
  10. name = "proposal_list_test",
  11. srcs = ["proposal_list_test.py"],
  12. data = ["//proposals:md_files"],
  13. python_version = "PY3",
  14. deps = [":proposal_list"],
  15. )
  16. py_binary(
  17. name = "new_proposal",
  18. srcs = ["new_proposal.py"],
  19. python_version = "PY3",
  20. )
  21. py_test(
  22. name = "new_proposal_test",
  23. srcs = ["new_proposal_test.py"],
  24. data = ["//proposals:md_files"],
  25. python_version = "PY3",
  26. deps = [":new_proposal"],
  27. )
  28. mypy_test(
  29. name = "new_proposal_mypy_test",
  30. include_imports = True,
  31. deps = [":new_proposal"],
  32. )
  33. # This is a directly runnable script, but should not be run via bazel.
  34. py_library(
  35. name = "update_proposal_list",
  36. srcs = ["update_proposal_list.py"],
  37. deps = [":proposal_list"],
  38. )
  39. mypy_test(
  40. name = "update_proposal_list_mypy_test",
  41. include_imports = True,
  42. deps = [":update_proposal_list"],
  43. )