Debian Codegraph @

tools/build_defs/hash/BUILD

raw
1 load("@rules_python//python:defs.bzl", "py_binary")
2
3 licenses(["notice"]) # Apache 2.0
4
5 filegroup(
6 name = "srcs",
7 srcs = glob(["**"]),
8 visibility = ["//tools/build_defs:__pkg__"],
9 )
10
11 exports_files(
12 ["README.md"],
13 visibility = ["//site:__pkg__"],
14 )
15
16 py_binary(
17 name = "sha256",
18 srcs = ["sha256.py"],
19 visibility = ["//visibility:public"],
20 )
21
22 exports_files(
23 ["hash.bzl"],
24 visibility = ["//visibility:public"],
25 )
26
27 sh_test(
28 name = "sha256_test",
29 size = "small",
30 srcs = ["sha256_test.sh"],
31 data = ["sha256"],
32 deps = ["@bazel_tools//tools/bash/runfiles"],
33 )