File tree Expand file tree Collapse file tree 6 files changed +18
-2
lines changed
Expand file tree Collapse file tree 6 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -397,6 +397,11 @@ tensorboard_zip_file(
397397# `pip install numpy`
398398py_library (name = "expect_numpy_installed" )
399399
400+ # This is a dummy rule used as a pillow dependency in open-source.
401+ # We expect pillow to already be installed on the system, e.g. via
402+ # `pip install pillow`
403+ py_library (name = "expect_pillow_installed" )
404+
400405# This is a dummy rule used as a grpc dependency in open-source.
401406# We expect grpc to already be installed on the system, e.g. via
402407# `pip install grpcio`
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ py_library(
2525 "//tensorboard:plugin_util" ,
2626 "//tensorboard/backend:http_util" ,
2727 "//tensorboard/plugins:base_plugin" ,
28+ "//tensorboard/util:img_mime_type_detector" ,
2829 "@org_pocoo_werkzeug" ,
2930 ],
3031)
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ py_library(
2424 "//tensorboard/plugins/histogram:metadata" ,
2525 "//tensorboard/plugins/image:metadata" ,
2626 "//tensorboard/plugins/scalar:metadata" ,
27+ "//tensorboard/util:img_mime_type_detector" ,
2728 "@org_pocoo_werkzeug" ,
2829 ],
2930)
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ py_library(
2626 "//tensorboard/backend/event_processing:plugin_asset_util" ,
2727 "//tensorboard/compat:tensorflow" ,
2828 "//tensorboard/plugins:base_plugin" ,
29+ "//tensorboard/util:img_mime_type_detector" ,
2930 "//tensorboard/util:tb_logging" ,
3031 "@org_pocoo_werkzeug" ,
3132 ],
Original file line number Diff line number Diff line change 3434from tensorboard .plugins import base_plugin
3535from tensorboard .plugins .projector import metadata
3636from tensorboard .plugins .projector .projector_config_pb2 import ProjectorConfig
37- from tensorboard .util import img_mime_type_detector
38- from tensorboard .util import tb_logging
37+ from tensorboard .util import img_mime_type_detector , tb_logging
3938
4039logger = tb_logging .get_logger ()
4140
Original file line number Diff line number Diff line change @@ -103,6 +103,15 @@ py_test(
103103 ],
104104)
105105
106+ py_library (
107+ name = "img_mime_type_detector" ,
108+ srcs = ["img_mime_type_detector.py" ],
109+ srcs_version = "PY3" ,
110+ deps = [
111+ "//tensorboard:expect_pillow_installed" ,
112+ ],
113+ )
114+
106115py_library (
107116 name = "io_util" ,
108117 srcs = ["io_util.py" ],
You can’t perform that action at this time.
0 commit comments