aboutsummaryrefslogtreecommitdiff
path: root/examples/bzlmod/other_module/other_module/pkg/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bzlmod/other_module/other_module/pkg/BUILD.bazel')
-rw-r--r--examples/bzlmod/other_module/other_module/pkg/BUILD.bazel23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/bzlmod/other_module/other_module/pkg/BUILD.bazel b/examples/bzlmod/other_module/other_module/pkg/BUILD.bazel
new file mode 100644
index 0000000..6e37df8
--- /dev/null
+++ b/examples/bzlmod/other_module/other_module/pkg/BUILD.bazel
@@ -0,0 +1,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"])