Skip to content

Commit 01fb107

Browse files
Internal Change
PiperOrigin-RevId: 912596128
1 parent 58706d2 commit 01fb107

13 files changed

Lines changed: 52 additions & 8 deletions

File tree

docs/guide/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
load("//third_party/py/tensorflow_docs/google:tf_org.bzl", "tf_org_check_links", "tf_org_notebook_test")
22

3+
package(
4+
default_applicable_licenses = ["//tensorflow_text:license"],
5+
)
6+
37
licenses(["notice"])
48

59
tf_org_check_links(name = "check_links")

docs/tutorials/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
load("//third_party/py/tensorflow_docs/google:tf_org.bzl", "tf_org_check_links", "tf_org_notebook_test")
22

3+
package(
4+
default_applicable_licenses = ["//tensorflow_text:license"],
5+
)
6+
37
licenses(["notice"])
48

59
tf_org_check_links(name = "check_links")

tensorflow_text/core/kernels/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ load("//tensorflow_text:tftext.bzl", "tf_cc_library", "tflite_cc_library")
1111
licenses(["notice"])
1212

1313
# Visibility rules
14-
package(default_visibility = ["//visibility:public"])
14+
package(
15+
default_applicable_licenses = ["//tensorflow_text:license"],
16+
default_visibility = ["//visibility:public"],
17+
)
1518

1619
exports_files(["LICENSE"])
1720

tensorflow_text/core/kernels/sentencepiece/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ load("//tensorflow_text:tftext.bzl", "tf_cc_library", "tflite_cc_library")
99
licenses(["notice"])
1010

1111
# Visibility rules
12-
package(default_visibility = ["//visibility:public"])
12+
package(
13+
default_applicable_licenses = ["//tensorflow_text:license"],
14+
default_visibility = ["//visibility:public"],
15+
)
1316

1417
filegroup(
1518
name = "testdata",

tensorflow_text/core/ops/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ load("@rules_cc//cc:cc_test.bzl", "cc_test")
44

55
licenses(["notice"])
66

7-
package(default_visibility = ["//visibility:private"])
7+
package(
8+
default_applicable_licenses = ["//tensorflow_text:license"],
9+
default_visibility = ["//visibility:private"],
10+
)
811

912
exports_files(glob(["*.cc"]))
1013

tensorflow_text/core/pybinds/BUILD

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ load("//tensorflow_text:tftext.bzl", "if_pywrap", "pybind_extension", "pywrap_bi
55

66
licenses(["notice"])
77

8-
package(default_visibility = [
9-
"//nlp/sage/nlu/features/python:__pkg__",
10-
"//nlp/semantic_parsing/learning/neural/portable/tools/release:__pkg__",
11-
"//tensorflow_text:__subpackages__",
12-
])
8+
package(
9+
default_applicable_licenses = ["//tensorflow_text:license"],
10+
default_visibility = [
11+
"//nlp/sage/nlu/features/python:__pkg__",
12+
"//nlp/semantic_parsing/learning/neural/portable/tools/release:__pkg__",
13+
"//tensorflow_text:__subpackages__",
14+
],
15+
)
1316

1417
pybind_extension(
1518
name = "tflite_registrar",

tensorflow_text/tools/wordpiece_vocab/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ load("//tensorflow_text:tftext.bzl", "if_pywrap")
55
licenses(["notice"])
66

77
package(
8+
default_applicable_licenses = ["//tensorflow_text:license"],
89
default_visibility = [
910
"//tensorflow_text:__subpackages__",
1011
],

third_party/bazel/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package(
2+
default_applicable_licenses = ["//tensorflow_text:license"],
3+
)

third_party/darts_clone/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
package(
2+
default_applicable_licenses = ["//tensorflow_text:license"],
3+
)
4+
15
# This empty BUILD file is required to make Bazel treat this directory as a package.

third_party/icu/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
package(
2+
default_applicable_licenses = ["//tensorflow_text:license"],
3+
)
4+
15
# This empty BUILD file is required to make Bazel treat this directory as a package.

0 commit comments

Comments
 (0)