File tree Expand file tree Collapse file tree 8 files changed +15
-29
lines changed Expand file tree Collapse file tree 8 files changed +15
-29
lines changed Original file line number Diff line number Diff line change 1414
1515"""Public entry point for py_binary."""
1616
17- load ("//python/private:py_binary_macro.bzl" , _starlark_py_binary = "py_binary" )
17+ load ("//python/private:py_binary_macro.bzl" , _py_binary = "py_binary" )
1818load ("//python/private:register_extension_info.bzl" , "register_extension_info" )
1919
20- # buildifier: disable=native-python
21- _py_binary_impl = _starlark_py_binary
22-
2320def py_binary (** attrs ):
2421 """Creates an executable Python program.
2522
@@ -40,7 +37,7 @@ def py_binary(**attrs):
4037 if attrs .get ("srcs_version" ) in ("PY2" , "PY2ONLY" ):
4138 fail ("Python 2 is no longer supported: https://github.com/bazel-contrib/rules_python/issues/886" )
4239
43- _py_binary_impl (** attrs )
40+ _py_binary (** attrs )
4441
4542register_extension_info (
4643 extension = py_binary ,
Original file line number Diff line number Diff line change 11"""Public entry point for PyCcLinkParamsInfo."""
22
3- load ("//python/private:py_cc_link_params_info.bzl" , _starlark_PyCcLinkParamsInfo = "PyCcLinkParamsInfo" )
3+ load ("//python/private:py_cc_link_params_info.bzl" , _PyCcLinkParamsInfo = "PyCcLinkParamsInfo" )
44
5- PyCcLinkParamsInfo = _starlark_PyCcLinkParamsInfo
5+ PyCcLinkParamsInfo = _PyCcLinkParamsInfo
Original file line number Diff line number Diff line change 1414
1515"""Public entry point for PyInfo."""
1616
17- load ("//python/private:py_info.bzl" , _starlark_PyInfo = "PyInfo" )
17+ load ("//python/private:py_info.bzl" , _PyInfo = "PyInfo" )
1818
19- PyInfo = _starlark_PyInfo
19+ PyInfo = _PyInfo
Original file line number Diff line number Diff line change 1414
1515"""Public entry point for py_library."""
1616
17- load ("//python/private:py_library_macro.bzl" , _starlark_py_library = "py_library" )
17+ load ("//python/private:py_library_macro.bzl" , _py_library = "py_library" )
1818load ("//python/private:register_extension_info.bzl" , "register_extension_info" )
1919
20- # buildifier: disable=native-python
21- _py_library_impl = _starlark_py_library
22-
2320def py_library (** attrs ):
2421 """Creates an executable Python program.
2522
@@ -37,7 +34,7 @@ def py_library(**attrs):
3734 if attrs .get ("srcs_version" ) in ("PY2" , "PY2ONLY" ):
3835 fail ("Python 2 is no longer supported: https://github.com/bazel-contrib/rules_python/issues/886" )
3936
40- _py_library_impl (** attrs )
37+ _py_library (** attrs )
4138
4239register_extension_info (
4340 extension = py_library ,
Original file line number Diff line number Diff line change 1414
1515"""Public entry point for py_runtime."""
1616
17- load ("//python/private:py_runtime_macro.bzl" , _starlark_py_runtime = "py_runtime" )
18-
19- # buildifier: disable=native-python
20- _py_runtime_impl = _starlark_py_runtime
17+ load ("//python/private:py_runtime_macro.bzl" , _py_runtime = "py_runtime" )
2118
2219def py_runtime (** attrs ):
2320 """Creates an executable Python program.
@@ -38,4 +35,4 @@ def py_runtime(**attrs):
3835 if attrs .get ("python_version" ) == "PY2" :
3936 fail ("Python 2 is no longer supported: see https://github.com/bazel-contrib/rules_python/issues/886" )
4037
41- _py_runtime_impl (** attrs )
38+ _py_runtime (** attrs )
Original file line number Diff line number Diff line change 1414
1515"""Public entry point for PyRuntimeInfo."""
1616
17- load ("//python/private:py_runtime_info.bzl" , _starlark_PyRuntimeInfo = "PyRuntimeInfo" )
17+ load ("//python/private:py_runtime_info.bzl" , _PyRuntimeInfo = "PyRuntimeInfo" )
1818
19- PyRuntimeInfo = _starlark_PyRuntimeInfo
19+ PyRuntimeInfo = _PyRuntimeInfo
Original file line number Diff line number Diff line change 1414
1515"""Public entry point for py_runtime_pair."""
1616
17- load ("//python/private:py_runtime_pair_macro.bzl" , _starlark_impl = "py_runtime_pair" )
18-
19- _py_runtime_pair = _starlark_impl
17+ load ("//python/private:py_runtime_pair_macro.bzl" , _py_runtime_pair = "py_runtime_pair" )
2018
2119# NOTE: This doc is copy/pasted from the builtin py_runtime_pair rule so our
2220# doc generator gives useful API docs.
Original file line number Diff line number Diff line change 1414
1515"""Public entry point for py_test."""
1616
17- load ("//python/private:py_test_macro.bzl" , _starlark_py_test = "py_test" )
17+ load ("//python/private:py_test_macro.bzl" , _py_test = "py_test" )
1818load ("//python/private:register_extension_info.bzl" , "register_extension_info" )
1919
20- # buildifier: disable=native-python
21- _py_test_impl = _starlark_py_test
22-
2320def py_test (** attrs ):
2421 """Creates an executable Python program.
2522
@@ -41,7 +38,7 @@ def py_test(**attrs):
4138 fail ("Python 2 is no longer supported: https://github.com/bazel-contrib/rules_python/issues/886" )
4239
4340 # buildifier: disable=native-python
44- _py_test_impl (** attrs )
41+ _py_test (** attrs )
4542
4643register_extension_info (
4744 extension = py_test ,
You can’t perform that action at this time.
0 commit comments