aboutsummaryrefslogtreecommitdiff
path: root/tests/entry_points/simple_macro.bzl
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2024-01-16 16:42:56 -0800
committerYifan Hong <elsk@google.com>2024-01-16 16:42:57 -0800
commit1508c18d9e27325a8d9c574a90d205e0a1d8a78f (patch)
tree721d3225371f656a66228a41796c81aa4d8bc096 /tests/entry_points/simple_macro.bzl
parent3e21f23d9400ba51f10e9b76016ff6d472829b4e (diff)
parent231d3f633fbcbb36028d96a188298df99bf153e1 (diff)
downloadbazelbuild-rules_python-1508c18d9e27325a8d9c574a90d205e0a1d8a78f.tar.gz
Upgrade bazelbuild-rules_python to 0.28.0
This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update bazelbuild-rules_python For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md Test: TreeHugger Change-Id: Ic0584645f577a4ea1f67458ca5e753f8a906aaa4
Diffstat (limited to 'tests/entry_points/simple_macro.bzl')
-rw-r--r--tests/entry_points/simple_macro.bzl31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/entry_points/simple_macro.bzl b/tests/entry_points/simple_macro.bzl
new file mode 100644
index 0000000..4764a3f
--- /dev/null
+++ b/tests/entry_points/simple_macro.bzl
@@ -0,0 +1,31 @@
+# Copyright 2023 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""
+A simple test macro.
+"""
+
+load("//python/entry_points:py_console_script_binary.bzl", "py_console_script_binary")
+
+def py_console_script_binary_in_a_macro(name, pkg):
+ """A simple macro to see that we can use our macro in a macro.
+
+ Args:
+ name, str: the name of the target
+ pkg, str: the pkg target
+ """
+ py_console_script_binary(
+ name = name,
+ pkg = Label(pkg),
+ )