xref: /aosp_15_r20/external/bazelbuild-rules_python/python/python.bzl (revision 60517a1edbc8ecf509223e9af94a7adec7d736b8)
1 *60517a1eSAndroid Build Coastguard Worker# Copyright 2017 The Bazel Authors. All rights reserved.
2 *60517a1eSAndroid Build Coastguard Worker#
3 *60517a1eSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
4 *60517a1eSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
5 *60517a1eSAndroid Build Coastguard Worker# You may obtain a copy of the License at
6 *60517a1eSAndroid Build Coastguard Worker#
7 *60517a1eSAndroid Build Coastguard Worker#    http://www.apache.org/licenses/LICENSE-2.0
8 *60517a1eSAndroid Build Coastguard Worker#
9 *60517a1eSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10 *60517a1eSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
11 *60517a1eSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 *60517a1eSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
13 *60517a1eSAndroid Build Coastguard Worker# limitations under the License.
14 *60517a1eSAndroid Build Coastguard Worker
15 *60517a1eSAndroid Build Coastguard Worker"""Re-exports for some of the core Bazel Python rules.
16 *60517a1eSAndroid Build Coastguard Worker
17 *60517a1eSAndroid Build Coastguard WorkerThis file is deprecated; please use the exports in defs.bzl instead. This is to
18 *60517a1eSAndroid Build Coastguard Workerfollow the new naming convention of putting core rules for a language
19 *60517a1eSAndroid Build Coastguard Workerunderneath @rules_<LANG>//<LANG>:defs.bzl. The exports in this file will be
20 *60517a1eSAndroid Build Coastguard Workerdisallowed in a future Bazel release by
21 *60517a1eSAndroid Build Coastguard Worker`--incompatible_load_python_rules_from_bzl`.
22 *60517a1eSAndroid Build Coastguard Worker"""
23 *60517a1eSAndroid Build Coastguard Worker
24 *60517a1eSAndroid Build Coastguard Workerdef py_library(*args, **kwargs):
25 *60517a1eSAndroid Build Coastguard Worker    """Deprecated py_library rule.
26 *60517a1eSAndroid Build Coastguard Worker
27 *60517a1eSAndroid Build Coastguard Worker    See the Bazel core [py_library](
28 *60517a1eSAndroid Build Coastguard Worker    https://docs.bazel.build/versions/master/be/python.html#py_library)
29 *60517a1eSAndroid Build Coastguard Worker    documentation.
30 *60517a1eSAndroid Build Coastguard Worker
31 *60517a1eSAndroid Build Coastguard Worker    Deprecated: This symbol will become unusuable when
32 *60517a1eSAndroid Build Coastguard Worker    `--incompatible_load_python_rules_from_bzl` is enabled. Please use the
33 *60517a1eSAndroid Build Coastguard Worker    symbols in `@rules_python//python:defs.bzl` instead.
34 *60517a1eSAndroid Build Coastguard Worker    """
35 *60517a1eSAndroid Build Coastguard Worker
36 *60517a1eSAndroid Build Coastguard Worker    # buildifier: disable=native-python
37 *60517a1eSAndroid Build Coastguard Worker    native.py_library(*args, **kwargs)
38 *60517a1eSAndroid Build Coastguard Worker
39 *60517a1eSAndroid Build Coastguard Workerdef py_binary(*args, **kwargs):
40 *60517a1eSAndroid Build Coastguard Worker    """Deprecated py_binary rule.
41 *60517a1eSAndroid Build Coastguard Worker
42 *60517a1eSAndroid Build Coastguard Worker    See the Bazel core [py_binary](
43 *60517a1eSAndroid Build Coastguard Worker    https://docs.bazel.build/versions/master/be/python.html#py_binary)
44 *60517a1eSAndroid Build Coastguard Worker    documentation.
45 *60517a1eSAndroid Build Coastguard Worker
46 *60517a1eSAndroid Build Coastguard Worker    Deprecated: This symbol will become unusuable when
47 *60517a1eSAndroid Build Coastguard Worker    `--incompatible_load_python_rules_from_bzl` is enabled. Please use the
48 *60517a1eSAndroid Build Coastguard Worker    symbols in `@rules_python//python:defs.bzl` instead.
49 *60517a1eSAndroid Build Coastguard Worker    """
50 *60517a1eSAndroid Build Coastguard Worker
51 *60517a1eSAndroid Build Coastguard Worker    # buildifier: disable=native-python
52 *60517a1eSAndroid Build Coastguard Worker    native.py_binary(*args, **kwargs)
53 *60517a1eSAndroid Build Coastguard Worker
54 *60517a1eSAndroid Build Coastguard Workerdef py_test(*args, **kwargs):
55 *60517a1eSAndroid Build Coastguard Worker    """Deprecated py_test rule.
56 *60517a1eSAndroid Build Coastguard Worker
57 *60517a1eSAndroid Build Coastguard Worker    See the Bazel core [py_test](
58 *60517a1eSAndroid Build Coastguard Worker    https://docs.bazel.build/versions/master/be/python.html#py_test)
59 *60517a1eSAndroid Build Coastguard Worker    documentation.
60 *60517a1eSAndroid Build Coastguard Worker
61 *60517a1eSAndroid Build Coastguard Worker    Deprecated: This symbol will become unusuable when
62 *60517a1eSAndroid Build Coastguard Worker    `--incompatible_load_python_rules_from_bzl` is enabled. Please use the
63 *60517a1eSAndroid Build Coastguard Worker    symbols in `@rules_python//python:defs.bzl` instead.
64 *60517a1eSAndroid Build Coastguard Worker    """
65 *60517a1eSAndroid Build Coastguard Worker
66 *60517a1eSAndroid Build Coastguard Worker    # buildifier: disable=native-python
67 *60517a1eSAndroid Build Coastguard Worker    native.py_test(*args, **kwargs)
68