blob: 3e739ca55db977632b1a37ab86d3be564a43e863 [file] [log] [blame]
Matt Moore9160fc72017-08-11 10:06:19 -07001# 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
Jon Brandvein522222a2019-07-26 23:35:39 -040015"""Re-exports for some of the core Bazel Python rules.
mattmoor7f4cc922017-09-15 14:12:03 -070016
Jon Brandvein522222a2019-07-26 23:35:39 -040017This 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):
Marcel Hlopko230f6d12019-10-23 23:28:11 +020025 """Deprecated py_library rule.
26
27 See the Bazel core [py_library](
Jon Brandvein522222a2019-07-26 23:35:39 -040028 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.
Laurent Le Brun173290e2018-11-27 20:13:34 +010034 """
Marcel Hlopko230f6d12019-10-23 23:28:11 +020035
36 # buildifier: disable=native-python
Laurent Le Brun173290e2018-11-27 20:13:34 +010037 native.py_library(*args, **kwargs)
Matt Moore9160fc72017-08-11 10:06:19 -070038
39def py_binary(*args, **kwargs):
Marcel Hlopko230f6d12019-10-23 23:28:11 +020040 """Deprecated py_binary rule.
41
42 See the Bazel core [py_binary](
Jon Brandvein522222a2019-07-26 23:35:39 -040043 https://docs.bazel.build/versions/master/be/python.html#py_binary)
44 documentation.
mattmoor7f4cc922017-09-15 14:12:03 -070045
Jon Brandvein522222a2019-07-26 23:35:39 -040046 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.
Laurent Le Brun173290e2018-11-27 20:13:34 +010049 """
Marcel Hlopko230f6d12019-10-23 23:28:11 +020050
51 # buildifier: disable=native-python
Laurent Le Brun173290e2018-11-27 20:13:34 +010052 native.py_binary(*args, **kwargs)
mattmoor7f4cc922017-09-15 14:12:03 -070053
54def py_test(*args, **kwargs):
Marcel Hlopko230f6d12019-10-23 23:28:11 +020055 """Deprecated py_test rule.
56
57 See the Bazel core [py_test](
Jon Brandvein522222a2019-07-26 23:35:39 -040058 https://docs.bazel.build/versions/master/be/python.html#py_test)
59 documentation.
mattmoor7f4cc922017-09-15 14:12:03 -070060
Jon Brandvein522222a2019-07-26 23:35:39 -040061 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.
Laurent Le Brun173290e2018-11-27 20:13:34 +010064 """
Marcel Hlopko230f6d12019-10-23 23:28:11 +020065
66 # buildifier: disable=native-python
Laurent Le Brun173290e2018-11-27 20:13:34 +010067 native.py_test(*args, **kwargs)