aboutsummaryrefslogtreecommitdiff
path: root/python/py_test.bzl
diff options
context:
space:
mode:
authorRichard Levasseur <rlevasseur@google.com>2023-03-09 14:38:05 -0800
committerGitHub <noreply@github.com>2023-03-09 14:38:05 -0800
commit756264aa526eba8eeb4badfa8109050a1f6e0966 (patch)
tree4455ea6c6114ea0f9dc7a063a49a78512b69bf11 /python/py_test.bzl
parent31d0efd69e27c93d57f8b2b5664867e1e21828c6 (diff)
downloadbazelbuild-rules_python-756264aa526eba8eeb4badfa8109050a1f6e0966.tar.gz
feat: bzl file per rule/provider (#1122)
This is basically a performance optimization. Bazel can only see that a bzl file changed, not the particular contents. This means that any downstream bzl file loading it is invalidated, even if it doesn't load any of the affected code. As an example, if a package only loads `py_library.bzl`, then changing `py_test.bzl` doesn't need to invalidate all libraries. * Also removes some more extraneous license comments Work towards #1069
Diffstat (limited to 'python/py_test.bzl')
-rw-r--r--python/py_test.bzl19
1 files changed, 19 insertions, 0 deletions
diff --git a/python/py_test.bzl b/python/py_test.bzl
new file mode 100644
index 0000000..84470bc
--- /dev/null
+++ b/python/py_test.bzl
@@ -0,0 +1,19 @@
+# Copyright 2023 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""Public entry point for py_test."""
+
+load("//python/private:reexports.bzl", _py_test = "py_test")
+
+py_test = _py_test