1# Copyright 2019 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("//python:defs.bzl", "py_library") 16load(":tags.bzl", "TAGS") 17 18licenses(["notice"]) 19 20py_library( 21 name = "foo", 22 srcs = ["foo.py"], 23 tags = TAGS, 24 # Allow a test to verify an "outside package" doesn't get included 25 visibility = ["//examples/wheel:__pkg__"], 26) 27 28genrule( 29 name = "test_current_py_toolchain", 30 srcs = [], 31 outs = ["out.txt"], 32 cmd = "$(PYTHON3) --version > $(location out.txt)", 33 toolchains = ["//python:current_py_toolchain"], 34) 35