xref: /aosp_15_r20/external/bazelbuild-rules_python/gazelle/manifest/BUILD.bazel (revision 60517a1edbc8ecf509223e9af94a7adec7d736b8)
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3exports_files([
4    # This gets wrapped up into a py_binary with args inside of the gazelle_python_manifest macro.
5    "copy_to_source.py",
6])
7
8go_library(
9    name = "manifest",
10    srcs = ["manifest.go"],
11    importpath = "github.com/bazelbuild/rules_python/gazelle/manifest",
12    visibility = ["//visibility:public"],
13    deps = [
14        "@com_github_emirpasic_gods//sets/treeset",
15        "@in_gopkg_yaml_v2//:yaml_v2",
16    ],
17)
18
19go_test(
20    name = "manifest_test",
21    srcs = ["manifest_test.go"],
22    data = glob(["testdata/**"]),
23    deps = [":manifest"],
24)
25
26filegroup(
27    name = "distribution",
28    srcs = glob(["**"]) + [
29        "//manifest/generate:distribution",
30        "//manifest/hasher:distribution",
31        "//manifest/test:distribution",
32    ],
33    visibility = ["//:__pkg__"],
34)
35