1# Copyright 2017 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 15"""Re-exports for some of the core Bazel Python rules. 16 17This file is deprecated; please use the exports in defs.bzl instead. This is to 18follow the new naming convention of putting core rules for a language 19underneath @rules_<LANG>//<LANG>:defs.bzl. The exports in this file will be 20disallowed in a future Bazel release by 21`--incompatible_load_python_rules_from_bzl`. 22""" 23 24def py_library(*args, **kwargs): 25 """Deprecated py_library rule. 26 27 See the Bazel core [py_library]( 28 https://docs.bazel.build/versions/master/be/python.html#py_library) 29 documentation. 30 31 Deprecated: This symbol will become unusuable when 32 `--incompatible_load_python_rules_from_bzl` is enabled. Please use the 33 symbols in `@rules_python//python:defs.bzl` instead. 34 """ 35 36 # buildifier: disable=native-python 37 native.py_library(*args, **kwargs) 38 39def py_binary(*args, **kwargs): 40 """Deprecated py_binary rule. 41 42 See the Bazel core [py_binary]( 43 https://docs.bazel.build/versions/master/be/python.html#py_binary) 44 documentation. 45 46 Deprecated: This symbol will become unusuable when 47 `--incompatible_load_python_rules_from_bzl` is enabled. Please use the 48 symbols in `@rules_python//python:defs.bzl` instead. 49 """ 50 51 # buildifier: disable=native-python 52 native.py_binary(*args, **kwargs) 53 54def py_test(*args, **kwargs): 55 """Deprecated py_test rule. 56 57 See the Bazel core [py_test]( 58 https://docs.bazel.build/versions/master/be/python.html#py_test) 59 documentation. 60 61 Deprecated: This symbol will become unusuable when 62 `--incompatible_load_python_rules_from_bzl` is enabled. Please use the 63 symbols in `@rules_python//python:defs.bzl` instead. 64 """ 65 66 # buildifier: disable=native-python 67 native.py_test(*args, **kwargs) 68