BUILD 830 B

1234567891011121314151617181920212223242526
  1. load("@rules_python//python:defs.bzl", "py_binary", "py_test")
  2. load("@pgv_pip_deps//:requirements.bzl", "requirement")
  3. py_binary(
  4. name = "python-harness",
  5. srcs = ["harness.py"],
  6. main = "harness.py",
  7. srcs_version = "PY3",
  8. visibility = ["//visibility:public"],
  9. deps = [
  10. # ensures we test with the package's own protobuf runtime specified in setup.cfg
  11. # and not the one riding on the py_proto_library dependencies
  12. requirement("protobuf"),
  13. "//tests/harness:harness_py_proto",
  14. "//tests/harness/cases:cases_py_proto",
  15. "//python:validator_py"
  16. ]
  17. )
  18. py_test(
  19. name = "python-requirements-match",
  20. srcs = ["requirements_test.py"],
  21. main = "requirements_test.py",
  22. srcs_version = "PY3",
  23. data = ["//python:setup.cfg", "//python:requirements.in"],
  24. )