forked from bazel-contrib/bazel-mypy-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
50 lines (42 loc) · 1.05 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_python//:version.bzl", "version")
buildifier(
name = "buildifier",
)
package(default_visibility = ["//visibility:private"])
licenses(["notice"]) # MIT
exports_files([
"LICENSE",
"version.bzl",
])
filegroup(
name = "distribution",
srcs = [
"BUILD",
"LICENSE",
"config.bzl",
"mypy.bzl",
"rules.bzl",
"current_mypy_version.txt",
"//mypy:distribution",
"//repositories:distribution",
"//templates:distribution",
"//third_party:distribution",
],
)
version = "0.1.0"
# Build the artifact to put on the github release page.
pkg_tar(
name = "bazel_mypy_integration-{version}".format(version = version),
srcs = [
":distribution",
],
extension = "tar.gz",
# It is all source code, so make it read-only.
mode = "0444",
# Make it owned by root
owner = "0.0",
package_dir = ".",
strip_prefix = ".",
)