load("@aspect_rules_py//py:defs.bzl", "py_binary", "py_library") # BUILD.bazel # gazelle:exclude archive/ # gazelle:exclude 3p/ # gazelle:exclude third_party/submodule # gazelle:exclude third_party/jsonnet/vendor # gazelle:exclude kube2/vendor/ # gazelle:proto_plugin python implementation builtin:python # gazelle:proto_plugin pyi implementation builtin:pyi # gazelle:proto_plugin grpc_python implementation grpc:grpc:protoc-gen-grpc-python # gazelle:proto_plugin go implementation golang:protobuf:protoc-gen-go # gazelle:proto_plugin grpc_go implementation grpc:grpc-go:protoc-gen-go-grpc # gazelle:proto_rule proto_compile implementation stackb:rules_proto:proto_compile # gazelle:proto_rule proto_py_library implementation stackb:rules_proto:proto_py_library # gazelle:proto_rule grpc_py_library implementation stackb:rules_proto:grpc_py_library # gazelle:proto_rule proto_go_library implementation stackb:rules_proto:proto_go_library # gazelle:proto_rule grpc_go_library implementation stackb:rules_proto:grpc_go_library # gazelle:proto_language python_grpc plugin python # gazelle:proto_language python_grpc plugin pyi # gazelle:proto_language python_grpc plugin grpc_python # gazelle:proto_language python_grpc rule proto_compile # gazelle:proto_language python_grpc rule proto_py_library # gazelle:proto_language python_grpc rule grpc_py_library # gazelle:proto_language go_grpc plugin go # gazelle:proto_language go_grpc plugin grpc_go # gazelle:proto_language go_grpc rule proto_compile # gazelle:proto_language go_grpc rule grpc_go_library # gazelle:proto_rule proto_py_library deps @com_google_protobuf//:protobuf_python # gazelle:proto_rule grpc_py_library deps @pip_third_party//grpcio:pkg load("@gazelle//:def.bzl", "gazelle", "gazelle_binary") load("@npm//:defs.bzl", "npm_link_all_packages") load("@pip_third_party//:requirements.bzl", "all_requirements", "requirement") load("@rules_python//python/entry_points:py_console_script_binary.bzl", "py_console_script_binary") exports_files([ "BUILD", "BUILD.bazel", "key.txt" ]) npm_link_all_packages(name = "node_modules") py_library( name = "requirements", visibility = ["//visibility:public"], deps = all_requirements, ) py_console_script_binary( name = "pip-compile", pkg = requirement("pip-tools"), script = "pip-compile", deps = [ requirement("docopt"), ], ) py_console_script_binary( name = "pip", pkg = requirement("pip"), script = "pip", ) gazelle_binary( name = "gazelle_bin", languages = [ "@gazelle//language/go", "@gazelle//language/proto", "@build_stack_rules_proto//language/protobuf", ], ) gazelle( name = "gazelle", gazelle = ":gazelle_bin", ) config_setting( name = "ci", define_values = {"ci": "true"}, visibility = ["//visibility:public"], )