blob: 02f4c73582b1b74752508dde65803b4e3893be69 [file] [log] [blame]
# Description:
# Tool for measuring how configuration transitions affect build graph size.
load("//tools/python:private/defs.bzl", "py_binary", "py_library")
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache 2.0
py_binary(
name = "ctexplain",
srcs = ["ctexplain.py"],
python_version = "PY3",
deps = [":bazel_api"],
)
py_library(
name = "bazel_api",
srcs = ["bazel_api.py"],
srcs_version = "PY3ONLY",
deps = [":base"],
)
py_test(
name = "bazel_api_test",
size = "small",
srcs = ["bazel_api_test.py"],
python_version = "PY3",
deps = [
":bazel_api",
"//src/test/py/bazel:test_base",
],
)
py_library(
name = "base",
srcs = [
"types.py",
],
srcs_version = "PY3ONLY",
deps = [
"//third_party/py/dataclasses", # Backport for Python < 3.7.
"//third_party/py/frozendict",
],
)
py_test(
name = "types_test",
size = "small",
srcs = ["types_test.py"],
python_version = "PY3",
deps = [
":base",
"//third_party/py/frozendict",
],
)
filegroup(
name = "srcs",
srcs = glob(["*"]),
)