blob: 9ca45b780e46f8a9ad68c19fca25cae3653ec483 [file]
# Copyright 2022 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.
"""Package used to test that Python actions work properly."""
load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
load("//build/bazel/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS")
package(default_applicable_licenses = ["//:license"])
py_library(
name = "lib",
srcs = ["lib.py"],
target_compatible_with = HOST_OS_CONSTRAINTS,
)
py_binary(
name = "bin",
srcs = ["bin.py"],
target_compatible_with = HOST_OS_CONSTRAINTS,
deps = [":lib"],
)
py_test(
name = "test",
srcs = ["test.py"],
target_compatible_with = HOST_OS_CONSTRAINTS,
deps = [":lib"],
)
filegroup(
name = "hello_python",
testonly = True,
srcs = [
":bin",
":lib",
":test",
],
visibility = ["//visibility:public"],
)