blob: fa5f4bbf7131ea7b6cd109678e2d55dc16e89d9b [file] [edit]
# Copyright 2026 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("@rules_python//python:py_library.bzl", "py_library")
load("//build/bazel/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS")
load("//build/bazel/rules/host_tests:host_py_test.bzl", "host_py_test")
package(default_applicable_licenses = ["//:license"])
# Helpers for Bazel labels, e.g. ones passed on the command line.
py_library(
name = "bazel_labels",
srcs = [
"__init__.py",
"bazel_labels.py",
],
imports = [".."],
visibility = [
"//build/bazel/scripts:__pkg__",
"//scripts/fxtest/python:__pkg__",
],
)
host_py_test(
name = "bazel_labels_test",
srcs = ["bazel_labels_test.py"],
target_compatible_with = HOST_OS_CONSTRAINTS,
deps = [":bazel_labels"],
)