BUILD 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
  5. py_library(
  6. name = "proposals",
  7. srcs = ["proposals.py"],
  8. visibility = ["//website/jekyll:__pkg__"],
  9. )
  10. py_test(
  11. name = "proposals_test",
  12. srcs = ["proposals_test.py"],
  13. data = ["//proposals:website_content"],
  14. python_version = "PY3",
  15. deps = [":proposals"],
  16. )
  17. py_binary(
  18. name = "new_proposal",
  19. srcs = ["new_proposal.py"],
  20. python_version = "PY3",
  21. )
  22. py_test(
  23. name = "new_proposal_test",
  24. srcs = ["new_proposal_test.py"],
  25. data = ["//proposals:website_content"],
  26. python_version = "PY3",
  27. deps = [":new_proposal"],
  28. )
  29. # This is a directly runnable script, but should not be run via bazel.
  30. py_library(
  31. name = "update_proposal_list",
  32. srcs = ["update_proposal_list.py"],
  33. deps = [":proposals"],
  34. )