Skip to content

Commit daab491

Browse files
authored
Adapt Visibility and some minor fixes (#168)
* [rules_score] remove docs_as_code dependency * [rules score]: adapt visibility Co-authored-by: SebSparrowHawk 211667837+SebSparrowHawk@users.noreply.github.com
1 parent e3e856f commit daab491

4 files changed

Lines changed: 26 additions & 43 deletions

File tree

MODULE.bazel

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,6 @@ register_toolchains(
210210
"//bazel/rules/rules_score:sphinx_default_toolchain",
211211
)
212212

213-
###############################################################################
214-
# Dev Dependencies (for testing)
215-
###############################################################################
216-
bazel_dep(name = "score_docs_as_code", version = "3.0.1", dev_dependency = True)
217-
218213
###############################################################################
219214
# Setup Googletest
220215
###############################################################################

bazel/rules/rules_score/BUILD

Lines changed: 10 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -72,40 +72,6 @@ py_library(
7272
],
7373
)
7474

75-
# Sphinx build binary with all required dependencies
76-
py_binary(
77-
name = "score_build",
78-
srcs = ["src/sphinx_wrapper.py"],
79-
data = [
80-
"//tools/sphinx:plantuml",
81-
],
82-
env = {
83-
"SOURCE_DIRECTORY": "",
84-
"DATA": "",
85-
"ACTION": "check",
86-
},
87-
main = "src/sphinx_wrapper.py",
88-
visibility = ["//visibility:public"],
89-
deps = [
90-
":sphinx_module_ext",
91-
"@lobster//sphinx_lobster:sphinx_lobster_builder",
92-
"@score_docs_as_code//src/extensions/score_metamodel",
93-
"@score_tooling//plantuml/sphinx/clickable_plantuml",
94-
"@trlc//tools/sphinx/extensions/trlc",
95-
requirement("sphinx"),
96-
requirement("sphinx_rtd_theme"),
97-
requirement("sphinx_needs"),
98-
requirement("sphinx_design"),
99-
requirement("myst_parser"),
100-
requirement("readthedocs_sphinx_ext"),
101-
requirement("rst2pdf"),
102-
requirement("sphinxcontrib-umlet"),
103-
requirement("svglib"),
104-
requirement("sphinxcontrib-plantuml"),
105-
"@rules_python//python/runfiles",
106-
],
107-
)
108-
10975
sphinx_module(
11076
name = "rules_score_doc",
11177
srcs = glob(
@@ -124,6 +90,9 @@ sphinx_module(
12490
py_binary(
12591
name = "raw_build",
12692
srcs = ["src/sphinx_wrapper.py"],
93+
data = [
94+
"//tools/sphinx:plantuml",
95+
],
12796
env = {
12897
"SOURCE_DIRECTORY": "",
12998
"DATA": "",
@@ -132,8 +101,9 @@ py_binary(
132101
main = "src/sphinx_wrapper.py",
133102
visibility = ["//visibility:public"],
134103
deps = [
104+
":sphinx_module_ext",
135105
"@lobster//sphinx_lobster:sphinx_lobster_builder",
136-
"@score_docs_as_code//src/extensions/score_metamodel",
106+
"@rules_python//python/runfiles",
137107
"@score_tooling//plantuml/sphinx/clickable_plantuml",
138108
"@trlc//tools/sphinx/extensions/trlc",
139109
requirement("sphinx"),
@@ -151,10 +121,13 @@ py_binary(
151121

152122
sphinx_toolchain(
153123
name = "default_toolchain",
154-
sphinx = ":score_build",
124+
sphinx = ":raw_build",
155125
)
156126

157-
toolchain_type(name = "toolchain_type")
127+
toolchain_type(
128+
name = "toolchain_type",
129+
visibility = ["//visibility:public"],
130+
)
158131

159132
toolchain(
160133
name = "sphinx_default_toolchain",

bazel/rules/rules_score/trlc/BUILD

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2025 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************

validation/ai_checker/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ load("@pip_ai_checker//:requirements.bzl", "requirement")
1414
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
1515

1616
exports_files(
17-
["src/ai_checker/orchestrator.py"],
17+
[
18+
"ai_checker.bzl",
19+
"src/ai_checker/orchestrator.py",
20+
],
1821
visibility = ["//visibility:public"],
1922
)
2023

0 commit comments

Comments
 (0)