Skip to content

Commit 76a1593

Browse files
CEL Dev Teamcopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 978041825
1 parent aee8dee commit 76a1593

2 files changed

Lines changed: 46 additions & 10 deletions

File tree

cel_expr_python/BUILD

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,42 @@ licenses(["notice"])
88

99
exports_files(["LICENSE"])
1010

11+
package_group(
12+
name = "friends",
13+
includes = [
14+
":internal",
15+
],
16+
packages = [
17+
"//ads/adsml/steelmill/cello/...",
18+
"//assistant/quality/gia_retrospec/...",
19+
"//cloud/ai/dialogflow/foodai/ordering/...",
20+
"//cloud/ai/platform/orcas/groot/...",
21+
"//cloud/capacity/delos/...",
22+
"//cloud/databases/console/adk/surface_agents/database_o11y_agent/...",
23+
"//cloud/duet/cloudassist/event_router/...",
24+
"//cloud/serverless/genai/...",
25+
"//communication/rtctools/pcm/core/...",
26+
"//corp/legal/removals/...",
27+
"//enterprise/crm/support/intelligence/auto_eval/...",
28+
"//enterprise/gcbp/genai/agent_sentinel/...",
29+
"//evaluation/autoraters/wrapper/...",
30+
"//finance_org/cloud_transformation/audit_bugs/approval_service_integration/...",
31+
"//gdm/science/verified_agents/policy_dsl/...",
32+
"//geo/engprod/georails/...",
33+
"//java/com/google/apps/mcp/testing/...",
34+
"//java/com/google/cloud/revenue/revrec/...",
35+
"//java/com/google/maps/trust/firetruck/...",
36+
"//learning/agents/orcas/framework/...",
37+
"//learning/tfx/users/gpay_team/tfx_v2/tflex/finserv/consumer/dre/...",
38+
"//ops/security/ai/agentic/...",
39+
"//ops/security/investigations/vimes/...",
40+
"//ops/security/vulncc/agents/vulnact/...",
41+
"//ux/research/kagi/agent/...",
42+
"//wireless/android/pixel/testtools/stance/...",
43+
"//wireless/android/pixel/testtools/systemhealth/...",
44+
],
45+
)
46+
1147
# For Python programs using CEL.
1248
pybind_library(
1349
name = "cel_pybind_lib",
@@ -112,7 +148,7 @@ pybind_extension(
112148
],
113149
data = ["cel.pyi"],
114150
visibility = [
115-
"//visibility:public",
151+
":friends",
116152
],
117153
deps = [
118154
":cel_extension",
@@ -131,7 +167,7 @@ pybind_library(
131167
"py_error_status.h",
132168
],
133169
tags = ["freethreading_compatible"],
134-
visibility = ["//visibility:public"],
170+
visibility = [":friends"],
135171
deps = [
136172
":status_macros",
137173
"@com_google_absl//absl/base:no_destructor",
@@ -149,7 +185,7 @@ pybind_library(
149185
cc_library(
150186
name = "status_macros",
151187
hdrs = ["status_macros.h"],
152-
visibility = ["//visibility:public"],
188+
visibility = [":friends"],
153189
deps = [
154190
"@com_google_absl//absl/status",
155191
],

cel_expr_python/ext/BUILD

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pybind_extension(
1111
"ext_bindings.pyi",
1212
"//cel_expr_python:cel",
1313
],
14-
visibility = ["//visibility:public"],
14+
visibility = ["//third_party/cel/python:friends"],
1515
deps = [
1616
"//cel_expr_python:cel_extension",
1717
"@com_google_cel_cpp//compiler",
@@ -28,7 +28,7 @@ pybind_extension(
2828
"ext_encoders.pyi",
2929
"//cel_expr_python:cel",
3030
],
31-
visibility = ["//visibility:public"],
31+
visibility = ["//third_party/cel/python:friends"],
3232
deps = [
3333
"//cel_expr_python:cel_extension",
3434
"@com_google_absl//absl/status",
@@ -48,7 +48,7 @@ pybind_extension(
4848
"ext_lists.pyi",
4949
"//cel_expr_python:cel",
5050
],
51-
visibility = ["//visibility:public"],
51+
visibility = ["//third_party/cel/python:friends"],
5252
deps = [
5353
"//cel_expr_python:cel_extension",
5454
"@com_google_absl//absl/status",
@@ -69,7 +69,7 @@ pybind_extension(
6969
"ext_math.pyi",
7070
"//cel_expr_python:cel",
7171
],
72-
visibility = ["//visibility:public"],
72+
visibility = ["//third_party/cel/python:friends"],
7373
deps = [
7474
"//cel_expr_python:cel_extension",
7575
"@com_google_absl//absl/status",
@@ -91,7 +91,7 @@ pybind_extension(
9191
"ext_optional.pyi",
9292
"//cel_expr_python:cel",
9393
],
94-
visibility = ["//visibility:public"],
94+
visibility = ["//third_party/cel/python:friends"],
9595
deps = [
9696
"//cel_expr_python:cel_extension",
9797
"@com_google_absl//absl/status",
@@ -114,7 +114,7 @@ pybind_extension(
114114
"ext_proto.pyi",
115115
"//cel_expr_python:cel",
116116
],
117-
visibility = ["//visibility:public"],
117+
visibility = ["//third_party/cel/python:friends"],
118118
deps = [
119119
"//cel_expr_python:cel_extension",
120120
"@com_google_cel_cpp//compiler",
@@ -131,7 +131,7 @@ pybind_extension(
131131
"ext_strings.pyi",
132132
"//cel_expr_python:cel",
133133
],
134-
visibility = ["//visibility:public"],
134+
visibility = ["//third_party/cel/python:friends"],
135135
deps = [
136136
"//cel_expr_python:cel_extension",
137137
"@com_google_absl//absl/status",

0 commit comments

Comments
 (0)