aboutsummaryrefslogtreecommitdiff
path: root/sphinxdocs/private/BUILD.bazel
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2024-01-17 18:06:05 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2024-01-17 18:06:05 +0000
commitaf64a1352bc5d5ab464e40768c26a3e85ece9fd5 (patch)
tree721d3225371f656a66228a41796c81aa4d8bc096 /sphinxdocs/private/BUILD.bazel
parent5c7cc0dce1331e9a2fcc166a80f4fab2c90ac590 (diff)
parent1508c18d9e27325a8d9c574a90d205e0a1d8a78f (diff)
downloadbazelbuild-rules_python-af64a1352bc5d5ab464e40768c26a3e85ece9fd5.tar.gz
Upgrade bazelbuild-rules_python to 0.28.0 am: 1508c18d9e
Original change: https://android-review.googlesource.com/c/platform/external/bazelbuild-rules_python/+/2912149 Change-Id: Ie16c4d656dee8bf6eadaeec6d9f09ed3f1a28a49 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'sphinxdocs/private/BUILD.bazel')
-rw-r--r--sphinxdocs/private/BUILD.bazel99
1 files changed, 99 insertions, 0 deletions
diff --git a/sphinxdocs/private/BUILD.bazel b/sphinxdocs/private/BUILD.bazel
new file mode 100644
index 0000000..01758b3
--- /dev/null
+++ b/sphinxdocs/private/BUILD.bazel
@@ -0,0 +1,99 @@
+# 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.
+
+load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
+load("//python:proto.bzl", "py_proto_library")
+load("//python:py_binary.bzl", "py_binary")
+load("//python:py_library.bzl", "py_library")
+
+package(
+ default_visibility = ["//sphinxdocs:__subpackages__"],
+)
+
+# These are only exported because they're passed as files to the //sphinxdocs
+# macros, and thus must be visible to other packages. They should only be
+# referenced by the //sphinxdocs macros.
+exports_files(
+ [
+ "func_template.vm",
+ "header_template.vm",
+ "provider_template.vm",
+ "readthedocs_install.py",
+ "rule_template.vm",
+ "sphinx_build.py",
+ "sphinx_server.py",
+ ],
+ visibility = ["//:__subpackages__"],
+)
+
+bzl_library(
+ name = "sphinx_bzl",
+ srcs = ["sphinx.bzl"],
+ deps = [
+ "//python:py_binary_bzl",
+ "@bazel_skylib//lib:paths",
+ "@bazel_skylib//lib:types",
+ "@bazel_skylib//rules:build_test",
+ "@io_bazel_stardoc//stardoc:stardoc_lib",
+ ],
+)
+
+bzl_library(
+ name = "sphinx_stardoc_bzl",
+ srcs = ["sphinx_stardoc.bzl"],
+ deps = [
+ "//python/private:util_bzl",
+ "@bazel_skylib//lib:types",
+ "@bazel_skylib//rules:build_test",
+ "@io_bazel_stardoc//stardoc:stardoc_lib",
+ ],
+)
+
+bzl_library(
+ name = "readthedocs_bzl",
+ srcs = ["readthedocs.bzl"],
+ deps = ["//python:py_binary_bzl"],
+)
+
+py_binary(
+ name = "inventory_builder",
+ srcs = ["inventory_builder.py"],
+ # Only public because it's an implicit attribute
+ visibility = ["//:__subpackages__"],
+)
+
+py_binary(
+ name = "proto_to_markdown",
+ srcs = ["proto_to_markdown.py"],
+ # Only public because it's an implicit attribute
+ visibility = ["//:__subpackages__"],
+ deps = [":proto_to_markdown_lib"],
+)
+
+py_library(
+ name = "proto_to_markdown_lib",
+ srcs = ["proto_to_markdown.py"],
+ # Only public because it's an implicit attribute
+ visibility = ["//:__subpackages__"],
+ deps = [
+ ":stardoc_output_proto_py_pb2",
+ ],
+)
+
+py_proto_library(
+ name = "stardoc_output_proto_py_pb2",
+ deps = [
+ "@io_bazel_stardoc//stardoc/proto:stardoc_output_proto",
+ ],
+)