Matt Moore | 9160fc7 | 2017-08-11 10:06:19 -0700 | [diff] [blame] | 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 | |
Jon Brandvein | 522222a | 2019-07-26 23:35:39 -0400 | [diff] [blame] | 15 | """Re-exports for some of the core Bazel Python rules. |
mattmoor | 7f4cc92 | 2017-09-15 14:12:03 -0700 | [diff] [blame] | 16 | |
Jon Brandvein | 522222a | 2019-07-26 23:35:39 -0400 | [diff] [blame] | 17 | This file is deprecated; please use the exports in defs.bzl instead. This is to |
| 18 | follow the new naming convention of putting core rules for a language |
| 19 | underneath @rules_<LANG>//<LANG>:defs.bzl. The exports in this file will be |
| 20 | disallowed in a future Bazel release by |
| 21 | `--incompatible_load_python_rules_from_bzl`. |
| 22 | """ |
| 23 | |
| 24 | def py_library(*args, **kwargs): |
Marcel Hlopko | 230f6d1 | 2019-10-23 23:28:11 +0200 | [diff] [blame] | 25 | """Deprecated py_library rule. |
| 26 | |
| 27 | See the Bazel core [py_library]( |
Jon Brandvein | 522222a | 2019-07-26 23:35:39 -0400 | [diff] [blame] | 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. |
Laurent Le Brun | 173290e | 2018-11-27 20:13:34 +0100 | [diff] [blame] | 34 | """ |
Marcel Hlopko | 230f6d1 | 2019-10-23 23:28:11 +0200 | [diff] [blame] | 35 | |
| 36 | # buildifier: disable=native-python |
Laurent Le Brun | 173290e | 2018-11-27 20:13:34 +0100 | [diff] [blame] | 37 | native.py_library(*args, **kwargs) |
Matt Moore | 9160fc7 | 2017-08-11 10:06:19 -0700 | [diff] [blame] | 38 | |
| 39 | def py_binary(*args, **kwargs): |
Marcel Hlopko | 230f6d1 | 2019-10-23 23:28:11 +0200 | [diff] [blame] | 40 | """Deprecated py_binary rule. |
| 41 | |
| 42 | See the Bazel core [py_binary]( |
Jon Brandvein | 522222a | 2019-07-26 23:35:39 -0400 | [diff] [blame] | 43 | https://docs.bazel.build/versions/master/be/python.html#py_binary) |
| 44 | documentation. |
mattmoor | 7f4cc92 | 2017-09-15 14:12:03 -0700 | [diff] [blame] | 45 | |
Jon Brandvein | 522222a | 2019-07-26 23:35:39 -0400 | [diff] [blame] | 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. |
Laurent Le Brun | 173290e | 2018-11-27 20:13:34 +0100 | [diff] [blame] | 49 | """ |
Marcel Hlopko | 230f6d1 | 2019-10-23 23:28:11 +0200 | [diff] [blame] | 50 | |
| 51 | # buildifier: disable=native-python |
Laurent Le Brun | 173290e | 2018-11-27 20:13:34 +0100 | [diff] [blame] | 52 | native.py_binary(*args, **kwargs) |
mattmoor | 7f4cc92 | 2017-09-15 14:12:03 -0700 | [diff] [blame] | 53 | |
| 54 | def py_test(*args, **kwargs): |
Marcel Hlopko | 230f6d1 | 2019-10-23 23:28:11 +0200 | [diff] [blame] | 55 | """Deprecated py_test rule. |
| 56 | |
| 57 | See the Bazel core [py_test]( |
Jon Brandvein | 522222a | 2019-07-26 23:35:39 -0400 | [diff] [blame] | 58 | https://docs.bazel.build/versions/master/be/python.html#py_test) |
| 59 | documentation. |
mattmoor | 7f4cc92 | 2017-09-15 14:12:03 -0700 | [diff] [blame] | 60 | |
Jon Brandvein | 522222a | 2019-07-26 23:35:39 -0400 | [diff] [blame] | 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. |
Laurent Le Brun | 173290e | 2018-11-27 20:13:34 +0100 | [diff] [blame] | 64 | """ |
Marcel Hlopko | 230f6d1 | 2019-10-23 23:28:11 +0200 | [diff] [blame] | 65 | |
| 66 | # buildifier: disable=native-python |
Laurent Le Brun | 173290e | 2018-11-27 20:13:34 +0100 | [diff] [blame] | 67 | native.py_test(*args, **kwargs) |