aboutsummaryrefslogtreecommitdiff
path: root/examples/bzlmod/other_module/other_module/pkg/BUILD.bazel
blob: 6e37df8233c4cff6c527e75e29ea427804af02a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
load("@python_3_11//:defs.bzl", py_binary_311 = "py_binary")
load("@rules_python//python:defs.bzl", "py_library")

py_library(
    name = "lib",
    srcs = ["lib.py"],
    data = ["data/data.txt"],
    visibility = ["//visibility:public"],
    deps = ["@rules_python//python/runfiles"],
)

# This is used for testing mulitple versions of Python. This is
# used only when you need to support multiple versions of Python
# in the same project.
py_binary_311(
    name = "lib_311",
    srcs = ["lib.py"],
    data = ["data/data.txt"],
    visibility = ["//visibility:public"],
    deps = ["@rules_python//python/runfiles"],
)

exports_files(["data/data.txt"])