Skip to content

Commit

Permalink
fix BUILD files.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 699287624
  • Loading branch information
liangyaning33 authored and Orbax Authors committed Nov 22, 2024
1 parent ca9b7a6 commit db07904
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
12 changes: 9 additions & 3 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package(default_visibility = ["//visibility:private"])
package(default_visibility = ["//visibility:public"])

licenses(["notice"])
licenses(
["notice"],
default_visibility = ["//visibility:public"],
)

exports_files(["LICENSE"])
exports_files(
["LICENSE"],
default_visibility = ["//visibility:public"],
)
10 changes: 3 additions & 7 deletions checkpoint/orbax/checkpoint/_src/path/BUILD
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
load("//devtools/python/blaze:pytype.bzl", "pytype_strict_library", pytype_strict_test = "pytype_strict_contrib_test")
load("//devtools/python/blaze:strict.bzl", "py_library_providing_imports_info")

package(
default_applicable_licenses = ["//third_party/py/orbax/checkpoint:package_license"],
default_visibility = [
"//third_party/py/orbax/checkpoint:__subpackages__",
],
default_visibility = ["//visibility:public"],
)

py_library(
name = "utils",
srcs = ["utils.py"],
default_visibility = ["//visibility:public"],
srcs_version = "PY3",
)

py_library(
name = "path",
srcs = ["__init__.py"],
lib_rule = pytype_strict_library,
default_visibility = ["//visibility:public"],
)
15 changes: 4 additions & 11 deletions checkpoint/orbax/checkpoint/_src/path/snapshot/BUILD
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
load("//devtools/python/blaze:pytype.bzl", "pytype_strict_library")
load("//devtools/python/blaze:strict.bzl", "py_strict_test")

package(
default_applicable_licenses = ["//third_party/py/orbax/checkpoint:package_license"],
default_visibility = [
"//learning/deepmind/jax/roc:__subpackages__",
"//third_party/py/orbax/checkpoint:__subpackages__",
],
default_visibility = ["//visibility:public"],
)

py_library(
name = "snapshot",
srcs = ["snapshot.py"],
default_visibility = ["//visibility:public"],
srcs_version = "PY3",
deps = [
"//pyglib:timer",
"//third_party/py/orbax/checkpoint/_src/path:utils",
],
deps = ["//orbax/checkpoint/orbax/checkpoint/_src/path:utils"],
)

py_test(
name = "snapshot_test",
srcs = ["snapshot_test.py"],
default_visibility = ["//visibility:public"],
srcs_version = "PY3",
deps = [
":snapshot",
Expand Down

0 comments on commit db07904

Please sign in to comment.