Skip to content

Commit 0c255df

Browse files
arjungtensorflow-copybara
authored andcommitted
Internal change.
PiperOrigin-RevId: 547650065
1 parent 6d0de7d commit 0c255df

File tree

18 files changed

+69
-17
lines changed

18 files changed

+69
-17
lines changed

WORKSPACE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,12 @@ http_archive(
127127
build_file = "@pybind11_bazel//:pybind11.BUILD",
128128
)
129129

130+
# License rules.
131+
http_archive(
132+
name = "rules_license",
133+
urls = [
134+
"https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz",
135+
"https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz",
136+
],
137+
sha256 = "4531deccb913639c30e5c7512a054d5d875698daeb75d8cf90f284375fe7c360",
138+
)

neural_structured_learning/BUILD

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,17 @@
1717

1818
# Placeholder for internal Python strict compatibility macro.
1919
# Internal annotation for sync
20+
load("@rules_license//rules:license.bzl", "license")
2021

21-
package(default_visibility = ["//visibility:public"])
22+
package(
23+
default_applicable_licenses = [":license"],
24+
default_visibility = ["//visibility:public"],
25+
)
26+
27+
license(
28+
name = "license",
29+
package_name = "neural_structured_learning",
30+
)
2231

2332
licenses(["notice"])
2433

neural_structured_learning/configs/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
# Placeholder for internal Python strict compatibility macro.
1919

2020
package(
21+
default_applicable_licenses = ["//neural_structured_learning:license"],
2122
default_visibility = ["//visibility:public"],
22-
licenses = ["notice"], # Apache 2.0
2323
)
2424

25+
licenses(["notice"])
26+
2527
py_library(
2628
name = "configs",
2729
srcs = [

neural_structured_learning/estimator/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
# Placeholder for internal Python strict & test compatibility macro.
1919

2020
package(
21+
default_applicable_licenses = ["//neural_structured_learning:license"],
2122
default_visibility = ["//visibility:public"],
22-
licenses = ["notice"], # Apache 2.0
2323
)
2424

25+
licenses(["notice"])
26+
2527
py_library(
2628
name = "estimator",
2729
srcs = ["__init__.py"],

neural_structured_learning/examples/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
package(
2-
licenses = ["notice"], # Apache 2.0
2+
default_applicable_licenses = ["//neural_structured_learning:license"],
3+
default_visibility = ["//visibility:public"],
34
)
45

6+
licenses(["notice"])
7+
58
py_binary(
69
name = "graph_keras_mlp_cora",
710
srcs = ["graph_keras_mlp_cora.py"],

neural_structured_learning/experimental/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
# Placeholder for internal Python strict compatibility macro.
33

44
package(
5+
default_applicable_licenses = ["//neural_structured_learning:license"],
56
default_visibility = ["//neural_structured_learning:__subpackages__"],
6-
licenses = ["notice"], # Apache 2.0
77
)
88

9+
licenses(["notice"])
10+
911
py_library(
1012
name = "experimental",
1113
srcs = ["__init__.py"],

neural_structured_learning/keras/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
# Build rules for Keras APIs in Neural Structured Learning.
1919

2020
package(
21+
default_applicable_licenses = ["//neural_structured_learning:license"],
2122
default_visibility = ["//visibility:public"],
22-
licenses = ["notice"], # Apache 2.0
2323
)
2424

25+
licenses(["notice"])
26+
2527
py_library(
2628
name = "keras",
2729
srcs = ["__init__.py"],

neural_structured_learning/keras/layers/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818
# Build rules for custom Keras layers in Neural Structured Learning.
1919

2020
package(
21-
licenses = ["notice"], # Apache 2.0
21+
default_applicable_licenses = ["//neural_structured_learning:license"],
22+
default_visibility = ["//visibility:public"],
2223
)
2324

25+
licenses(["notice"])
26+
2427
py_library(
2528
name = "layers",
2629
srcs = ["__init__.py"],

neural_structured_learning/lib/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
# Build rules for libraries and ops in Neural Structured Learning.
1919

2020
package(
21+
default_applicable_licenses = ["//neural_structured_learning:license"],
2122
default_visibility = ["//visibility:public"],
22-
licenses = ["notice"], # Apache 2.0
2323
)
2424

25+
licenses(["notice"])
26+
2527
py_library(
2628
name = "lib",
2729
srcs = ["__init__.py"],

neural_structured_learning/tools/BUILD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
# Build rules for tools in Neural Structured Learning.
1919

2020
package(
21+
default_applicable_licenses = ["//neural_structured_learning:license"],
2122
default_visibility = ["//visibility:public"],
22-
licenses = ["notice"], # Apache 2.0
2323
)
2424

25+
licenses(["notice"])
26+
2527
py_library(
2628
name = "tools",
2729
srcs = ["__init__.py"],

0 commit comments

Comments
 (0)