Skip to content

Commit

Permalink
add default applicable_licenses
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 510205039
  • Loading branch information
TensorFlow Hub Authors authored and copybara-github committed Feb 16, 2023
1 parent d945300 commit abe5d2c
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 2 deletions.
5 changes: 4 additions & 1 deletion build_docs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
# ==============================================================================
licenses(["notice"])

package(default_visibility = ["//visibility:private"])
package(
default_applicable_licenses = ["//tensorflow_hub:license"],
default_visibility = ["//visibility:private"],
)

py_binary(
name = "build_docs",
Expand Down
2 changes: 2 additions & 0 deletions examples/half_plus_two/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package(default_applicable_licenses = ["//tensorflow_hub:license"])

# Copyright 2018 The TensorFlow Hub Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 2 additions & 0 deletions examples/image_retraining/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Description:
# Transfer learning example for TensorFlow.

package(default_applicable_licenses = ["//tensorflow_hub:license"])

licenses(["notice"])

py_binary(
Expand Down
2 changes: 2 additions & 0 deletions examples/mnist_export_v2/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package(default_applicable_licenses = ["//tensorflow_hub:license"])

# Copyright 2019 The TensorFlow Hub Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 2 additions & 0 deletions examples/text_embeddings/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package(default_applicable_licenses = ["//tensorflow_hub:license"])

# Copyright 2018 The TensorFlow Hub Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 2 additions & 0 deletions examples/text_embeddings_v2/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package(default_applicable_licenses = ["//tensorflow_hub:license"])

# Copyright 2019 The TensorFlow Hub Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
5 changes: 4 additions & 1 deletion tensorflow_hub/pip_package/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@

licenses(["notice"])

package(default_visibility = ["//visibility:private"])
package(
default_applicable_licenses = ["//tensorflow_hub:license"],
default_visibility = ["//visibility:private"],
)

sh_binary(
name = "build_pip_package",
Expand Down
1 change: 1 addition & 0 deletions tensorflow_hub/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
licenses(["notice"])

package(
default_applicable_licenses = ["//tensorflow_hub:license"],
default_visibility = ["//tensorflow_hub:__subpackages__"],
)

Expand Down
1 change: 1 addition & 0 deletions tensorflow_hub/tools/make_image_classifier/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
licenses(["notice"])

package(
default_applicable_licenses = ["//tensorflow_hub:license"],
default_visibility = [
"//:__subpackages__",
"//tensorflow_hub:__subpackages__",
Expand Down
2 changes: 2 additions & 0 deletions tensorflow_hub/tools/module_search/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package(default_applicable_licenses = ["//tensorflow_hub:license"])

# Copyright 2019 The TensorFlow Hub Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down

0 comments on commit abe5d2c

Please sign in to comment.