1# Copyright 2023 The Bazel Authors. All rights reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15load("@bazel_skylib//rules:build_test.bzl", "build_test") 16load("//python:py_test.bzl", "py_test") 17load(":simple_macro.bzl", "py_console_script_binary_in_a_macro") 18 19py_test( 20 name = "py_console_script_gen_test", 21 srcs = ["py_console_script_gen_test.py"], 22 main = "py_console_script_gen_test.py", 23 visibility = ["//visibility:private"], 24 deps = [ 25 "//python/private:py_console_script_gen_lib", 26 ], 27) 28 29py_console_script_binary_in_a_macro( 30 name = "twine", 31 pkg = "@rules_python_publish_deps//twine", 32) 33 34py_console_script_binary_in_a_macro( 35 name = "twine_pkg", 36 pkg = "@rules_python_publish_deps//twine:pkg", 37 script = "twine", 38) 39 40build_test( 41 name = "build_entry_point", 42 targets = [ 43 ":twine", 44 ":twine_pkg", 45 ], 46) 47