@@ -57,58 +57,3 @@ stamp_metadata_parser_version(
5757 srcs = ["metadata_parser.py.template" ],
5858 outs = ["metadata_parser.py" ],
5959)
60-
61- py_library (
62- name = "metadata" ,
63- srcs = [
64- "metadata.py" ,
65- ":metadata_parser_py" ,
66- ],
67- data = [
68- "//tensorflow_lite_support/metadata:metadata_schema.fbs" ,
69- ],
70- srcs_version = "PY2AND3" ,
71- visibility = ["//visibility:public" ],
72- deps = [
73- ":metadata_schema_py" ,
74- ":schema_py" ,
75- "//tensorflow_lite_support/metadata/cc/python:_pywrap_metadata_version" ,
76- "//tensorflow_lite_support/metadata/flatbuffers_lib:_pywrap_flatbuffers" ,
77- "@flatbuffers//:runtime_py" ,
78- "@org_tensorflow//tensorflow/python:platform" ,
79- ],
80- )
81-
82- # TODO(b/160127851): Temporarily disable the test because it doesn't build with TF internal libs.
83- # py_test(
84- # name = "metadata_test",
85- # srcs = ["metadata_test.py"],
86- # data = ["testdata/golden_json.json"],
87- # python_version = "PY3",
88- # srcs_version = "PY2AND3",
89- # tags = [
90- # "no_mac", # TODO(b/148247402): flatbuffers import broken on Mac OS.
91- # ],
92- # deps = [
93- # ":metadata",
94- # ":metadata_schema_py",
95- # ":schema_py",
96- # "@flatbuffers//:runtime_py",
97- # "@six_archive//:six",
98- # "@org_tensorflow//tensorflow/python:client_testlib",
99- # "@org_tensorflow//tensorflow/python:platform",
100- # "@org_tensorflow//tensorflow/python:platform_test",
101- # ],
102- # )
103-
104- # TODO(b/160127851): Temporarily disable the test because it doesn't build with TF internal libs.
105- # py_test(
106- # name = "metadata_parser_test",
107- # srcs = ["metadata_parser_test.py"],
108- # python_version = "PY3",
109- # srcs_version = "PY2AND3",
110- # deps = [
111- # ":metadata",
112- # "@org_tensorflow//tensorflow/python:client_testlib",
113- # ],
114- # )
0 commit comments