Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ sphinx_docs(
deps = [
":bzl_api_docs",
":py_api_srcs",
":py_cc_toolchain",
":py_runtime_pair",
"//sphinxdocs/docs:docs_lib",
],
)
Expand Down Expand Up @@ -123,8 +125,7 @@ sphinx_stardoc(
sphinx_stardoc(
name = "py_runtime_pair",
src = "//python/private:py_runtime_pair_rule_bzl",
prefix = "api/rules_python",
public_load_path = "//python:py_runtime_pair.bzl",
prefix = "api/rules_python/",
tags = ["docs"],
target_compatible_with = _TARGET_COMPATIBLE_WITH,
)
Expand Down
2 changes: 2 additions & 0 deletions python/py_runtime_pair.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ _py_runtime_pair = _starlark_impl if IS_BAZEL_6_OR_HIGHER else _bazel_tools_impl
def py_runtime_pair(name, py2_runtime = None, py3_runtime = None, **attrs):
"""A toolchain rule for Python.

This is a macro around the underlying {rule}`py_runtime_pair` rule.

This used to wrap up to two Python runtimes, one for Python 2 and one for Python 3.
However, Python 2 is no longer supported, so it now only wraps a single Python 3
runtime.
Expand Down