From e88fefd3f5c01e9f74d7d1ea69d9faa117e9e21a Mon Sep 17 00:00:00 2001 From: William Chargin Date: Thu, 19 Nov 2020 16:36:02 -0800 Subject: [PATCH] build: set `srcs_version = "PY3"` everywhere MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: We dropped official support for Python 2.7 early this year, but our Python build rules still had `srcs_version = "PY2AND3"` in many places due to lingering Google dependents. Now is the time to fix that, so that we may move forward with even more conviction. Generated with: ``` buildozer '//...:%py_library' 'set srcs_version PY3' && bazel query 'filter(expect.*installed, //tensorboard:all)' \ | xargs buildozer 'remove srcs_version' && git ls-files -z | xargs -0 sed -i s/PY2AND3/PY3/ ``` …which skips adding it to binaries and tests that don’t yet have it. (They don’t pose a problem with reverse dependencies.) The global `sed` hits `third_party/*.BUILD` and the `*.bzl` files. Test Plan: Sync into Google, run a global presubmit, and see what happens. Last time I did this, only three targets failed (out of all our transitive reverse dependencies), and they all looked like false positives. wchargin-branch: build-srcs-version-py3 wchargin-source: ac12d89ae6ba74b57e243e3cfaafd789931b5f3d --- tensorboard/BUILD | 55 ++++++++++--------- tensorboard/backend/BUILD | 28 +++++----- tensorboard/backend/event_processing/BUILD | 46 ++++++++-------- tensorboard/compat/BUILD | 6 +- tensorboard/compat/proto/BUILD | 2 +- tensorboard/compat/tensorflow_stub/BUILD | 8 +-- tensorboard/data/BUILD | 4 +- tensorboard/defs/protos.bzl | 4 +- tensorboard/defs/web_testing.bzl | 2 +- .../plugins/example_raw_scalars/BUILD | 2 +- tensorboard/functionaltests/BUILD | 4 +- tensorboard/pip_package/BUILD | 4 +- tensorboard/plugins/BUILD | 2 +- tensorboard/plugins/audio/BUILD | 16 +++--- tensorboard/plugins/core/BUILD | 4 +- tensorboard/plugins/custom_scalar/BUILD | 14 ++--- tensorboard/plugins/debugger_v2/BUILD | 10 ++-- .../debugger_v2/tf_debugger_v2_plugin/BUILD | 2 +- .../views/inactive/BUILD | 2 +- tensorboard/plugins/distribution/BUILD | 12 ++-- tensorboard/plugins/graph/BUILD | 20 +++---- tensorboard/plugins/histogram/BUILD | 16 +++--- tensorboard/plugins/hparams/BUILD | 32 +++++------ tensorboard/plugins/image/BUILD | 16 +++--- tensorboard/plugins/mesh/BUILD | 28 +++++----- tensorboard/plugins/npmi/BUILD | 18 +++--- tensorboard/plugins/pr_curve/BUILD | 16 +++--- tensorboard/plugins/profile_redirect/BUILD | 2 +- tensorboard/plugins/projector/BUILD | 14 ++--- tensorboard/plugins/scalar/BUILD | 18 +++--- tensorboard/plugins/text/BUILD | 16 +++--- tensorboard/plugins/text_v2/BUILD | 4 +- tensorboard/scripts/BUILD | 4 +- tensorboard/summary/BUILD | 12 ++-- tensorboard/summary/writer/BUILD | 8 +-- tensorboard/uploader/BUILD | 10 ++++ tensorboard/util/BUILD | 32 +++++------ third_party/bleach.BUILD | 2 +- third_party/html5lib.BUILD | 2 +- third_party/markdown.BUILD | 2 +- third_party/mock.BUILD | 2 +- third_party/portpicker.BUILD | 2 +- third_party/six.BUILD | 2 +- third_party/urllib3.BUILD | 2 +- third_party/webencodings.BUILD | 2 +- third_party/werkzeug.BUILD | 2 +- 46 files changed, 261 insertions(+), 250 deletions(-) diff --git a/tensorboard/BUILD b/tensorboard/BUILD index 6a3aefabfa..249d94d578 100644 --- a/tensorboard/BUILD +++ b/tensorboard/BUILD @@ -24,7 +24,7 @@ py_binary( name = "tensorboard", srcs = ["main.py"], main = "main.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":default", ":dynamic_plugins", @@ -45,7 +45,7 @@ py_binary( py_library( name = "lib", srcs = ["__init__.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//tensorboard:internal"], deps = [ ":errors", @@ -66,7 +66,7 @@ py_library( py_library( name = "lib_init_only", srcs = ["__init__.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//tensorboard:internal"], deps = [ ":lazy", @@ -78,7 +78,7 @@ py_test( name = "lib_test", size = "small", srcs = ["lib_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], visibility = ["//tensorboard:internal"], deps = [ @@ -90,7 +90,7 @@ py_test( py_library( name = "auth", srcs = ["auth.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "@org_pythonhosted_six", ], @@ -111,7 +111,7 @@ py_test( py_library( name = "context", srcs = ["context.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":auth", ], @@ -139,7 +139,7 @@ py_library( py_test( name = "errors_test", srcs = ["errors_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":errors", ":test", @@ -149,7 +149,7 @@ py_test( py_library( name = "manager", srcs = ["manager.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//tensorboard:internal"], deps = [ ":version", @@ -162,7 +162,7 @@ py_test( name = "manager_test", size = "small", srcs = ["manager_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], visibility = ["//tensorboard:internal"], deps = [ @@ -187,7 +187,7 @@ py_test( # high parallelism; TensorBoard subprocess time out instead of # launching successfully. flaky = True, - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//tensorboard:internal"], deps = [ ":manager", @@ -200,7 +200,7 @@ py_test( py_library( name = "notebook", srcs = ["notebook.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":manager", @@ -210,7 +210,7 @@ py_library( py_library( name = "program", srcs = ["program.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":manager", ":version", @@ -229,7 +229,7 @@ py_test( name = "program_test", size = "small", srcs = ["program_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":default", @@ -247,7 +247,7 @@ py_library( name = "test", testonly = 1, srcs = ["test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:expect_absl_testing_absltest_installed", "//tensorboard/util:tb_logging", @@ -259,7 +259,7 @@ py_library( name = "default", srcs = ["default.py"], data = ["webfiles.zip"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:expect_pkg_resources_installed", "//tensorboard/backend:experimental_plugin", @@ -285,6 +285,7 @@ py_library( py_library( name = "dynamic_plugins", + srcs_version = "PY3", deps = [ "//tensorboard/plugins/projector:projector_plugin", ], @@ -294,7 +295,7 @@ py_test( name = "default_test", size = "small", srcs = ["default_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":default", @@ -308,14 +309,14 @@ py_test( py_library( name = "version", srcs = ["version.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_test( name = "version_test", size = "small", srcs = ["version_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":test", @@ -440,7 +441,7 @@ filegroup( py_library( name = "data_compat", srcs = ["data_compat.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard/compat/proto:protos_all_py_pb2", "//tensorboard/plugins/audio:metadata", @@ -456,7 +457,7 @@ py_test( name = "data_compat_test", size = "small", srcs = ["data_compat_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":data_compat", "//tensorboard:expect_numpy_installed", @@ -477,7 +478,7 @@ py_test( py_library( name = "dataclass_compat", srcs = ["dataclass_compat.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard/compat/proto:protos_all_py_pb2", "//tensorboard/plugins/audio:metadata", @@ -496,7 +497,7 @@ py_test( name = "dataclass_compat_test", size = "small", srcs = ["dataclass_compat_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":dataclass_compat", "//tensorboard:expect_numpy_installed", @@ -522,7 +523,7 @@ py_test( py_binary( name = "encode_png_benchmark", srcs = ["encode_png_benchmark.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:expect_absl_logging_installed", "//tensorboard:expect_numpy_installed", @@ -536,7 +537,7 @@ py_binary( py_library( name = "plugin_util", srcs = ["plugin_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":context", @@ -551,7 +552,7 @@ py_test( name = "plugin_util_test", size = "small", srcs = ["plugin_util_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":context", @@ -571,14 +572,14 @@ alias( py_library( name = "lazy", srcs = ["lazy.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_test( name = "lazy_test", size = "small", srcs = ["lazy_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":lazy", diff --git a/tensorboard/backend/BUILD b/tensorboard/backend/BUILD index ba0fbb49bc..7cfe8196b0 100644 --- a/tensorboard/backend/BUILD +++ b/tensorboard/backend/BUILD @@ -8,7 +8,7 @@ licenses(["notice"]) py_library( name = "http_util", srcs = ["http_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":json_util", @@ -21,7 +21,7 @@ py_test( name = "http_util_test", size = "small", srcs = ["http_util_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":http_util", @@ -34,14 +34,14 @@ py_test( py_library( name = "json_util", srcs = ["json_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_test( name = "json_util_test", size = "small", srcs = ["json_util_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":json_util", @@ -94,14 +94,14 @@ py_test( py_library( name = "empty_path_redirect", srcs = ["empty_path_redirect.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_test( name = "empty_path_redirect_test", size = "small", srcs = ["empty_path_redirect_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":empty_path_redirect", @@ -113,13 +113,13 @@ py_test( py_library( name = "experiment_id", srcs = ["experiment_id.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_test( name = "experiment_id_test", srcs = ["experiment_id_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":experiment_id", "//tensorboard:test", @@ -130,13 +130,13 @@ py_test( py_library( name = "experimental_plugin", srcs = ["experimental_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_library( name = "path_prefix", srcs = ["path_prefix.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:errors", ], @@ -146,7 +146,7 @@ py_test( name = "path_prefix_test", size = "small", srcs = ["path_prefix_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":path_prefix", @@ -159,14 +159,14 @@ py_test( py_library( name = "process_graph", srcs = ["process_graph.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], ) py_library( name = "security_validator", srcs = ["security_validator.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard/util:tb_logging", "@org_pocoo_werkzeug", @@ -177,7 +177,7 @@ py_test( name = "security_validator_test", size = "small", srcs = ["security_validator_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":security_validator", diff --git a/tensorboard/backend/event_processing/BUILD b/tensorboard/backend/event_processing/BUILD index dd6a49e1c2..41143c99e3 100644 --- a/tensorboard/backend/event_processing/BUILD +++ b/tensorboard/backend/event_processing/BUILD @@ -8,7 +8,7 @@ licenses(["notice"]) py_library( name = "io_wrapper", srcs = ["io_wrapper.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ "//tensorboard/compat:tensorflow", @@ -21,7 +21,7 @@ py_test( name = "io_wrapper_test", size = "small", srcs = ["io_wrapper_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":io_wrapper", "//tensorboard:expect_tensorflow_installed", @@ -61,7 +61,7 @@ py_test( py_library( name = "data_provider", srcs = ["data_provider.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":event_accumulator", "//tensorboard:errors", @@ -75,7 +75,7 @@ py_library( py_test( name = "data_provider_test", srcs = ["data_provider_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":data_provider", ":event_multiplexer", @@ -98,7 +98,7 @@ py_test( py_library( name = "directory_loader", srcs = ["directory_loader.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":directory_watcher", ":io_wrapper", @@ -111,7 +111,7 @@ py_test( name = "directory_loader_test", size = "small", srcs = ["directory_loader_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":directory_loader", ":directory_watcher", @@ -125,7 +125,7 @@ py_test( py_library( name = "directory_watcher", srcs = ["directory_watcher.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":io_wrapper", @@ -138,7 +138,7 @@ py_test( name = "directory_watcher_test", size = "small", srcs = ["directory_watcher_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":directory_watcher", "//tensorboard:expect_tensorflow_installed", @@ -148,14 +148,14 @@ py_test( py_library( name = "reservoir", srcs = ["reservoir.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_test( name = "reservoir_test", size = "small", srcs = ["reservoir_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":reservoir", "//tensorboard:expect_tensorflow_installed", @@ -165,7 +165,7 @@ py_test( py_library( name = "event_file_loader", srcs = ["event_file_loader.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ "//tensorboard:data_compat", @@ -181,7 +181,7 @@ py_test( name = "event_file_loader_test", size = "small", srcs = ["event_file_loader_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":event_file_loader", "//tensorboard:expect_tensorflow_installed", @@ -196,7 +196,7 @@ py_test( size = "small", srcs = ["event_file_loader_test.py"], main = "event_file_loader_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":event_file_loader", "//tensorboard:expect_tensorflow_installed", @@ -210,7 +210,7 @@ py_test( py_library( name = "tag_types", srcs = ["tag_types.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_library( @@ -219,7 +219,7 @@ py_library( "event_accumulator.py", "plugin_event_accumulator.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":directory_loader", @@ -239,7 +239,7 @@ py_test( name = "event_accumulator_test", size = "small", srcs = ["event_accumulator_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":event_accumulator", "//tensorboard:data_compat", @@ -262,7 +262,7 @@ py_test( name = "plugin_event_accumulator_test", size = "small", srcs = ["plugin_event_accumulator_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":event_accumulator", "//tensorboard:expect_tensorflow_installed", @@ -285,7 +285,7 @@ py_library( "event_multiplexer.py", "plugin_event_multiplexer.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":directory_watcher", @@ -300,7 +300,7 @@ py_test( name = "event_multiplexer_test", size = "small", srcs = ["event_multiplexer_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":event_accumulator", ":event_multiplexer", @@ -313,7 +313,7 @@ py_test( name = "plugin_event_multiplexer_test", size = "small", srcs = ["plugin_event_multiplexer_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":event_accumulator", ":event_multiplexer", @@ -325,7 +325,7 @@ py_test( py_library( name = "plugin_asset_util", srcs = ["plugin_asset_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ "//tensorboard/compat:tensorflow", @@ -335,7 +335,7 @@ py_library( py_library( name = "event_file_inspector", srcs = ["event_file_inspector.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":event_accumulator", @@ -349,7 +349,7 @@ py_test( name = "event_file_inspector_test", size = "small", srcs = ["event_file_inspector_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":event_file_inspector", "//tensorboard:expect_tensorflow_installed", diff --git a/tensorboard/compat/BUILD b/tensorboard/compat/BUILD index 896d6e709c..f55ac5490b 100644 --- a/tensorboard/compat/BUILD +++ b/tensorboard/compat/BUILD @@ -19,7 +19,7 @@ licenses(["notice"]) py_library( name = "compat", srcs = ["__init__.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ "//tensorboard:lazy", @@ -37,7 +37,7 @@ py_library( # as written but can be swapped out for a real dependency. py_library( name = "tensorflow", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":compat", "//tensorboard/compat/tensorflow_stub", @@ -50,7 +50,7 @@ py_library( py_library( name = "no_tensorflow", srcs = ["notf.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":tensorflow", ], diff --git a/tensorboard/compat/proto/BUILD b/tensorboard/compat/proto/BUILD index b49f6dacbc..90157f9f78 100644 --- a/tensorboard/compat/proto/BUILD +++ b/tensorboard/compat/proto/BUILD @@ -55,7 +55,7 @@ py_test( name = "proto_test", size = "small", srcs = ["proto_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = [ "manual", "notap", diff --git a/tensorboard/compat/tensorflow_stub/BUILD b/tensorboard/compat/tensorflow_stub/BUILD index 99604da272..646297d846 100644 --- a/tensorboard/compat/tensorflow_stub/BUILD +++ b/tensorboard/compat/tensorflow_stub/BUILD @@ -13,7 +13,7 @@ py_library( "io/__init__.py", "io/gfile.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:expect_absl_flags_installed", "//tensorboard:expect_numpy_installed", @@ -26,7 +26,7 @@ py_test( name = "gfile_test", size = "small", srcs = ["io/gfile_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":tensorflow_stub", @@ -38,7 +38,7 @@ py_test( name = "gfile_tf_test", size = "small", srcs = ["io/gfile_tf_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":tensorflow_stub", @@ -50,7 +50,7 @@ py_test( name = "gfile_s3_test", size = "small", srcs = ["io/gfile_s3_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = [ "manual", "notap", diff --git a/tensorboard/data/BUILD b/tensorboard/data/BUILD index 9909ccc681..5991e1d1df 100644 --- a/tensorboard/data/BUILD +++ b/tensorboard/data/BUILD @@ -8,7 +8,7 @@ licenses(["notice"]) py_library( name = "lib_init_only", srcs = ["__init__.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//tensorboard:internal"], deps = [ "//tensorboard/data/experimental:lib_init_only", @@ -29,7 +29,7 @@ py_test( name = "provider_test", size = "small", srcs = ["provider_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":provider", diff --git a/tensorboard/defs/protos.bzl b/tensorboard/defs/protos.bzl index 3c18bc1000..f2381bd3a7 100644 --- a/tensorboard/defs/protos.bzl +++ b/tensorboard/defs/protos.bzl @@ -45,7 +45,7 @@ def tb_proto_library( name = name + "_py_pb2", srcs = outs_proto, imports = [], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = py_deps, testonly = testonly, visibility = visibility, @@ -55,7 +55,7 @@ def tb_proto_library( name = name + "_py_pb2_grpc", srcs = outs_grpc, imports = [], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [name + "_py_pb2"] + py_deps, testonly = testonly, visibility = visibility, diff --git a/tensorboard/defs/web_testing.bzl b/tensorboard/defs/web_testing.bzl index 2c6da78081..9fbb2585d8 100644 --- a/tensorboard/defs/web_testing.bzl +++ b/tensorboard/defs/web_testing.bzl @@ -73,7 +73,7 @@ def tf_web_test(name, web_library, src, **kwargs): srcs = [python_stub_output], browsers = ["//tensorboard/functionaltests/browsers:chromium"], data = [web_library], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "@io_bazel_rules_webtesting//testing/web", "@org_pythonhosted_urllib3//:org_pythonhosted_urllib3", diff --git a/tensorboard/examples/plugins/example_raw_scalars/BUILD b/tensorboard/examples/plugins/example_raw_scalars/BUILD index da4681bcda..ae5807b69d 100644 --- a/tensorboard/examples/plugins/example_raw_scalars/BUILD +++ b/tensorboard/examples/plugins/example_raw_scalars/BUILD @@ -37,7 +37,7 @@ py_test( "test.py", ], main = "test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ "//tensorboard", diff --git a/tensorboard/functionaltests/BUILD b/tensorboard/functionaltests/BUILD index 7fa96e75d5..3e98e09d4e 100644 --- a/tensorboard/functionaltests/BUILD +++ b/tensorboard/functionaltests/BUILD @@ -13,7 +13,7 @@ py_web_test_suite( ], # TODO(@jart): Make this fast and not flaky. flaky = True, - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = [ "manual", "webtest", @@ -29,6 +29,6 @@ py_library( name = "wct_test_driver", testonly = True, srcs = ["wct_test_driver.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = ["@io_bazel_rules_webtesting//testing/web"], ) diff --git a/tensorboard/pip_package/BUILD b/tensorboard/pip_package/BUILD index 168232da46..d2a8cf6e68 100644 --- a/tensorboard/pip_package/BUILD +++ b/tensorboard/pip_package/BUILD @@ -60,7 +60,7 @@ sh_binary( py_binary( name = "deterministic_tar_gz", srcs = ["deterministic_tar_gz.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_test( @@ -71,7 +71,7 @@ py_test( data = [ ":deterministic_tar_gz", # invoked as subprocess ], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:test", ], diff --git a/tensorboard/plugins/BUILD b/tensorboard/plugins/BUILD index a3f498c533..1b5249253f 100644 --- a/tensorboard/plugins/BUILD +++ b/tensorboard/plugins/BUILD @@ -18,7 +18,7 @@ py_library( py_test( name = "base_plugin_test", srcs = ["base_plugin_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":base_plugin", "//tensorboard:test", diff --git a/tensorboard/plugins/audio/BUILD b/tensorboard/plugins/audio/BUILD index 99cd5067ed..273e019c8c 100644 --- a/tensorboard/plugins/audio/BUILD +++ b/tensorboard/plugins/audio/BUILD @@ -10,7 +10,7 @@ licenses(["notice"]) py_library( name = "audio_plugin", srcs = ["audio_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", "//tensorboard:errors", @@ -27,7 +27,7 @@ py_test( name = "audio_plugin_test", size = "small", srcs = ["audio_plugin_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":audio_plugin", ":summary", @@ -49,7 +49,7 @@ py_test( size = "small", srcs = ["audio_plugin_test.py"], main = "audio_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":audio_plugin", ":summary", @@ -69,7 +69,7 @@ py_test( py_library( name = "summary", srcs = ["summary.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":summary_v2", @@ -81,7 +81,7 @@ py_library( py_library( name = "summary_v2", srcs = ["summary_v2.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], @@ -96,7 +96,7 @@ py_test( name = "summary_test", size = "medium", srcs = ["summary_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":summary", @@ -110,7 +110,7 @@ py_test( py_binary( name = "audio_demo", srcs = ["audio_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", "//tensorboard:expect_tensorflow_installed", @@ -121,7 +121,7 @@ py_binary( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], diff --git a/tensorboard/plugins/core/BUILD b/tensorboard/plugins/core/BUILD index 8848027d27..34b2f2ed12 100644 --- a/tensorboard/plugins/core/BUILD +++ b/tensorboard/plugins/core/BUILD @@ -8,7 +8,7 @@ licenses(["notice"]) py_library( name = "core_plugin", srcs = ["core_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:plugin_util", "//tensorboard/backend:http_util", @@ -23,7 +23,7 @@ py_test( name = "core_plugin_test", size = "small", srcs = ["core_plugin_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":core_plugin", "//tensorboard:expect_tensorflow_installed", diff --git a/tensorboard/plugins/custom_scalar/BUILD b/tensorboard/plugins/custom_scalar/BUILD index 191248453c..17691f4792 100644 --- a/tensorboard/plugins/custom_scalar/BUILD +++ b/tensorboard/plugins/custom_scalar/BUILD @@ -11,7 +11,7 @@ licenses(["notice"]) py_library( name = "custom_scalars_plugin", srcs = ["custom_scalars_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":protos_all_py_pb2", @@ -30,7 +30,7 @@ py_library( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ "//tensorboard/compat/proto:protos_all_py_pb2", @@ -40,7 +40,7 @@ py_library( py_library( name = "summary", srcs = ["summary.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":protos_all_py_pb2", @@ -52,7 +52,7 @@ py_test( name = "summary_test", size = "small", srcs = ["summary_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":protos_all_py_pb2", @@ -68,7 +68,7 @@ py_test( name = "custom_scalars_plugin_test", size = "small", srcs = ["custom_scalars_plugin_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":custom_scalars_plugin", ":protos_all_py_pb2", @@ -93,7 +93,7 @@ py_test( size = "small", srcs = ["custom_scalars_plugin_test.py"], main = "custom_scalars_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":custom_scalars_plugin", ":protos_all_py_pb2", @@ -122,7 +122,7 @@ tb_proto_library( py_binary( name = "custom_scalar_demo", srcs = ["custom_scalar_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":protos_all_py_pb2", "//tensorboard:expect_tensorflow_installed", diff --git a/tensorboard/plugins/debugger_v2/BUILD b/tensorboard/plugins/debugger_v2/BUILD index 5c197f1aee..5fd9bee61d 100644 --- a/tensorboard/plugins/debugger_v2/BUILD +++ b/tensorboard/plugins/debugger_v2/BUILD @@ -10,7 +10,7 @@ licenses(["notice"]) py_library( name = "debug_data_multiplexer", srcs = ["debug_data_multiplexer.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:errors", "//tensorboard:expect_tensorflow_installed", @@ -20,7 +20,7 @@ py_library( py_library( name = "debug_data_provider", srcs = ["debug_data_provider.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":debug_data_multiplexer", "//tensorboard/data:provider", @@ -30,7 +30,7 @@ py_library( py_library( name = "debugger_v2_plugin", srcs = ["debugger_v2_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":debug_data_provider", "//tensorboard:errors", @@ -45,7 +45,7 @@ py_test( name = "debug_data_multiplexer_test", size = "small", srcs = ["debug_data_multiplexer_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":debug_data_multiplexer", "//tensorboard:expect_tensorflow_installed", @@ -56,7 +56,7 @@ py_test( name = "debugger_v2_plugin_test", size = "medium", srcs = ["debugger_v2_plugin_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":debug_data_multiplexer", ":debugger_v2_plugin", diff --git a/tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/BUILD b/tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/BUILD index bd9c95f622..8215504f20 100644 --- a/tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/BUILD +++ b/tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/BUILD @@ -94,7 +94,7 @@ py_binary( name = "extract_dtypes_from_python", srcs = ["extract_dtypes_from_python.py"], python_version = "PY3", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard/compat/tensorflow_stub", ], diff --git a/tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/inactive/BUILD b/tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/inactive/BUILD index 209938c68c..d42a3eab2f 100644 --- a/tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/inactive/BUILD +++ b/tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/inactive/BUILD @@ -8,7 +8,7 @@ py_binary( name = "inline_images", srcs = ["inline_images.py"], python_version = "PY3", - srcs_version = "PY2AND3", + srcs_version = "PY3", ) genrule( diff --git a/tensorboard/plugins/distribution/BUILD b/tensorboard/plugins/distribution/BUILD index 6a34cee595..c9a1d50a31 100644 --- a/tensorboard/plugins/distribution/BUILD +++ b/tensorboard/plugins/distribution/BUILD @@ -9,7 +9,7 @@ licenses(["notice"]) py_library( name = "distributions_plugin", srcs = ["distributions_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":compressor", ":metadata", @@ -26,7 +26,7 @@ py_test( size = "small", srcs = ["distributions_plugin_test.py"], main = "distributions_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":compressor", ":distributions_plugin", @@ -50,7 +50,7 @@ py_test( size = "small", srcs = ["distributions_plugin_test.py"], main = "distributions_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":compressor", ":distributions_plugin", @@ -72,7 +72,7 @@ py_test( py_library( name = "compressor", srcs = ["compressor.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = ["//tensorboard:expect_numpy_installed"], ) @@ -80,7 +80,7 @@ py_test( name = "compressor_test", size = "small", srcs = ["compressor_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":compressor", "//tensorboard:expect_tensorflow_installed", @@ -90,5 +90,5 @@ py_test( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) diff --git a/tensorboard/plugins/graph/BUILD b/tensorboard/plugins/graph/BUILD index 79aa4a6ffb..bd8af14c48 100644 --- a/tensorboard/plugins/graph/BUILD +++ b/tensorboard/plugins/graph/BUILD @@ -9,7 +9,7 @@ licenses(["notice"]) py_library( name = "graphs_plugin", srcs = ["graphs_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":graph_util", ":keras_util", @@ -31,7 +31,7 @@ py_test( name = "graphs_plugin_test", size = "small", srcs = ["graphs_plugin_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [":graphs_plugin_test_lib"], ) @@ -39,7 +39,7 @@ py_library( name = "graphs_plugin_test_lib", testonly = True, srcs = ["graphs_plugin_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":graphs_plugin", "//tensorboard:context", @@ -60,7 +60,7 @@ py_test( size = "small", srcs = ["graphs_plugin_v2_test.py"], main = "graphs_plugin_v2_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":graphs_plugin", ":graphs_plugin_test_lib", @@ -77,7 +77,7 @@ py_test( size = "small", srcs = ["graphs_plugin_test.py"], main = "graphs_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":graphs_plugin", "//tensorboard:expect_tensorflow_installed", @@ -96,7 +96,7 @@ py_test( py_library( name = "keras_util", srcs = ["keras_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:private"], deps = [ "//tensorboard/compat/proto:protos_all_py_pb2", @@ -109,7 +109,7 @@ py_test( size = "small", srcs = ["keras_util_test.py"], main = "keras_util_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":keras_util", "//tensorboard:expect_tensorflow_installed", @@ -121,7 +121,7 @@ py_test( py_library( name = "graph_util", srcs = ["graph_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:private"], deps = [ "//tensorboard/compat/proto:protos_all_py_pb2", @@ -133,7 +133,7 @@ py_test( size = "small", srcs = ["graph_util_test.py"], main = "graph_util_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":graph_util", "//tensorboard:expect_tensorflow_installed", @@ -145,5 +145,5 @@ py_test( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) diff --git a/tensorboard/plugins/histogram/BUILD b/tensorboard/plugins/histogram/BUILD index 7f92d21fb0..1f8bd3d0c4 100644 --- a/tensorboard/plugins/histogram/BUILD +++ b/tensorboard/plugins/histogram/BUILD @@ -11,7 +11,7 @@ licenses(["notice"]) py_library( name = "histograms_plugin", srcs = ["histograms_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", "//tensorboard:errors", @@ -29,7 +29,7 @@ py_test( size = "medium", srcs = ["histograms_plugin_test.py"], main = "histograms_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":histograms_plugin", ":summary", @@ -53,7 +53,7 @@ py_test( size = "small", srcs = ["histograms_plugin_test.py"], main = "histograms_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":histograms_plugin", ":summary", @@ -75,7 +75,7 @@ py_test( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], @@ -89,7 +89,7 @@ py_library( py_library( name = "summary", srcs = ["summary.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":summary_v2", @@ -100,7 +100,7 @@ py_library( py_library( name = "summary_v2", srcs = ["summary_v2.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], @@ -119,7 +119,7 @@ py_test( size = "small", srcs = ["summary_test.py"], main = "summary_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", "//tensorboard:expect_tensorflow_installed", @@ -132,7 +132,7 @@ py_test( py_binary( name = "histograms_demo", srcs = ["histograms_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", "//tensorboard:expect_tensorflow_installed", diff --git a/tensorboard/plugins/hparams/BUILD b/tensorboard/plugins/hparams/BUILD index 4689d5825b..6671fdac0e 100644 --- a/tensorboard/plugins/hparams/BUILD +++ b/tensorboard/plugins/hparams/BUILD @@ -13,7 +13,7 @@ licenses(["notice"]) py_library( name = "hparams", srcs = ["__init__.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":api", @@ -33,7 +33,7 @@ py_library( "list_session_groups.py", "metrics.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":error", ":metadata", @@ -123,7 +123,7 @@ py_test( py_binary( name = "hparams_demo", srcs = ["hparams_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":api", ":protos_all_py_pb2", @@ -140,7 +140,7 @@ py_binary( py_binary( name = "hparams_minimal_demo", srcs = ["hparams_minimal_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":protos_all_py_pb2", ":summary", @@ -155,7 +155,7 @@ py_binary( py_binary( name = "hparams_util", srcs = ["hparams_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":protos_all_py_pb2", ":summary", @@ -178,7 +178,7 @@ sh_test( py_library( name = "api", srcs = ["api.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//visibility:public", ], @@ -192,7 +192,7 @@ py_test( name = "api_test", size = "small", srcs = ["api_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":api", ":keras", @@ -204,7 +204,7 @@ py_test( py_library( name = "keras", srcs = ["keras.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":protos_all_py_pb2", ":summary", @@ -217,7 +217,7 @@ py_test( name = "keras_test", size = "small", srcs = ["keras_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":api", ":keras", @@ -234,7 +234,7 @@ py_test( py_library( name = "summary_v2", srcs = ["summary_v2.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":protos_all_py_pb2", @@ -249,7 +249,7 @@ py_test( name = "summary_v2_test", size = "small", srcs = ["summary_v2_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":protos_all_py_pb2", @@ -269,7 +269,7 @@ py_test( size = "small", srcs = ["summary_v2_test.py"], main = "summary_v2_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":metadata", @@ -288,7 +288,7 @@ py_test( py_library( name = "summary", srcs = ["summary.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//visibility:public", ], @@ -303,7 +303,7 @@ py_library( py_test( name = "summary_test", srcs = ["summary_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":protos_all_py_pb2", ":summary", @@ -314,7 +314,7 @@ py_test( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":error", ":protos_all_py_pb2", @@ -326,7 +326,7 @@ py_library( py_library( name = "error", srcs = ["error.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) tb_proto_library( diff --git a/tensorboard/plugins/image/BUILD b/tensorboard/plugins/image/BUILD index 8b07790206..f37f032702 100644 --- a/tensorboard/plugins/image/BUILD +++ b/tensorboard/plugins/image/BUILD @@ -10,7 +10,7 @@ licenses(["notice"]) py_library( name = "images_plugin", srcs = ["images_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", "//tensorboard:expect_numpy_installed", @@ -25,7 +25,7 @@ py_library( py_binary( name = "images_demo", srcs = ["images_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", "//tensorboard:expect_absl_logging_installed", @@ -40,7 +40,7 @@ py_test( name = "images_plugin_test", size = "small", srcs = ["images_plugin_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":images_plugin", ":summary", @@ -62,7 +62,7 @@ py_test( size = "small", srcs = ["images_plugin_test.py"], main = "images_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":images_plugin", ":summary", @@ -82,7 +82,7 @@ py_test( py_library( name = "summary", srcs = ["summary.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":summary_v2", @@ -94,7 +94,7 @@ py_library( py_library( name = "summary_v2", srcs = ["summary_v2.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], @@ -110,7 +110,7 @@ py_test( name = "summary_test", size = "small", srcs = ["summary_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":summary", @@ -123,7 +123,7 @@ py_test( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], diff --git a/tensorboard/plugins/mesh/BUILD b/tensorboard/plugins/mesh/BUILD index 86f0c57cec..13e44ea946 100644 --- a/tensorboard/plugins/mesh/BUILD +++ b/tensorboard/plugins/mesh/BUILD @@ -8,7 +8,7 @@ licenses(["notice"]) py_library( name = "mesh", srcs = ["__init__.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":summary", @@ -18,7 +18,7 @@ py_library( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":protos_all_py_pb2", "//tensorboard/compat/proto:protos_all_py_pb2", @@ -29,7 +29,7 @@ py_test( name = "metadata_test", size = "small", srcs = ["metadata_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", "//tensorboard:expect_tensorflow_installed", @@ -41,7 +41,7 @@ py_test( py_library( name = "mesh_plugin", srcs = ["mesh_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":protos_all_py_pb2", @@ -59,7 +59,7 @@ py_library( name = "test_utils", testonly = 1, srcs = ["test_utils.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", "//tensorboard/backend/event_processing:event_multiplexer", @@ -71,7 +71,7 @@ py_test( name = "mesh_plugin_test", size = "small", srcs = ["mesh_plugin_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":mesh_plugin", ":summary", @@ -91,7 +91,7 @@ py_test( py_library( name = "summary", srcs = ["summary.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//visibility:public", ], @@ -106,7 +106,7 @@ py_library( py_library( name = "summary_v2", srcs = ["summary_v2.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", "//tensorboard/compat:tensorflow", @@ -119,7 +119,7 @@ py_test( name = "summary_test", size = "small", srcs = ["summary_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", ":test_utils", @@ -131,7 +131,7 @@ py_test( name = "summary_v2_test", size = "small", srcs = ["summary_v2_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":protos_all_py_pb2", @@ -149,7 +149,7 @@ tb_proto_library( py_library( name = "demo_utils", srcs = ["demo_utils.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:expect_numpy_installed", "//tensorboard/compat:tensorflow", @@ -164,7 +164,7 @@ py_test( ":test_data", "//tensorboard/compat:tensorflow", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":demo_utils", ], @@ -173,7 +173,7 @@ py_test( py_binary( name = "mesh_demo", srcs = ["mesh_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":demo_utils", ":summary", @@ -187,7 +187,7 @@ py_binary( py_binary( name = "mesh_demo_v2", srcs = ["mesh_demo_v2.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":demo_utils", ":summary_v2", diff --git a/tensorboard/plugins/npmi/BUILD b/tensorboard/plugins/npmi/BUILD index 2c4c0b6a75..01b65d289d 100644 --- a/tensorboard/plugins/npmi/BUILD +++ b/tensorboard/plugins/npmi/BUILD @@ -12,7 +12,7 @@ licenses(["notice"]) py_library( name = "npmi_plugin", srcs = ["npmi_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", "//tensorboard:plugin_util", @@ -27,7 +27,7 @@ py_test( size = "small", srcs = ["npmi_plugin_test.py"], main = "npmi_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":npmi_plugin", ":summary", @@ -43,7 +43,7 @@ py_test( py_binary( name = "npmi_demo", srcs = ["npmi_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":npmi_demo_data", ":summary", @@ -54,7 +54,7 @@ py_binary( py_library( name = "npmi_demo_data", srcs = ["npmi_demo_data.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], @@ -65,7 +65,7 @@ py_library( py_library( name = "summary", srcs = ["summary.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//visibility:public", ], @@ -79,7 +79,7 @@ py_test( name = "summary_test", size = "small", srcs = ["summary_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":summary", @@ -92,7 +92,7 @@ py_test( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], @@ -106,7 +106,7 @@ py_library( py_binary( name = "csv_to_plugin_data_demo", srcs = ["csv_to_plugin_data_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", "//tensorboard:expect_tensorflow_installed", @@ -116,7 +116,7 @@ py_binary( py_binary( name = "npy_to_embedding_data_demo", srcs = ["npy_to_embedding_data_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", "//tensorboard:expect_tensorflow_installed", diff --git a/tensorboard/plugins/pr_curve/BUILD b/tensorboard/plugins/pr_curve/BUILD index c7da60fd0e..669f664de3 100644 --- a/tensorboard/plugins/pr_curve/BUILD +++ b/tensorboard/plugins/pr_curve/BUILD @@ -10,7 +10,7 @@ licenses(["notice"]) py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":protos_all_py_pb2", "//tensorboard/compat/proto:protos_all_py_pb2", @@ -21,7 +21,7 @@ py_library( py_library( name = "pr_curves_plugin", srcs = ["pr_curves_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":metadata", @@ -39,7 +39,7 @@ py_test( name = "pr_curves_plugin_test", size = "medium", # tf integration test srcs = ["pr_curves_plugin_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":pr_curve_demo_lib", @@ -61,7 +61,7 @@ py_test( size = "medium", # tf integration test srcs = ["pr_curves_plugin_test.py"], main = "pr_curves_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":pr_curve_demo_lib", @@ -81,7 +81,7 @@ py_test( py_library( name = "summary", srcs = ["summary.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":metadata", @@ -95,7 +95,7 @@ py_test( name = "summary_test", size = "small", srcs = ["summary_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", "//tensorboard:expect_numpy_installed", @@ -117,14 +117,14 @@ tb_proto_library( py_binary( name = "pr_curve_demo", srcs = ["pr_curve_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [":pr_curve_demo_lib"], ) py_library( name = "pr_curve_demo_lib", srcs = ["pr_curve_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", "//tensorboard:expect_tensorflow_installed", diff --git a/tensorboard/plugins/profile_redirect/BUILD b/tensorboard/plugins/profile_redirect/BUILD index dff5259752..e7430e1ba7 100644 --- a/tensorboard/plugins/profile_redirect/BUILD +++ b/tensorboard/plugins/profile_redirect/BUILD @@ -8,7 +8,7 @@ licenses(["notice"]) py_library( name = "profile_redirect_plugin", srcs = ["profile_redirect_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard/plugins:base_plugin", ], diff --git a/tensorboard/plugins/projector/BUILD b/tensorboard/plugins/projector/BUILD index 7ad0bcd47d..483c5cfd37 100644 --- a/tensorboard/plugins/projector/BUILD +++ b/tensorboard/plugins/projector/BUILD @@ -12,7 +12,7 @@ py_library( data = [ "//tensorboard/plugins/projector/tf_projector_plugin:projector_assets", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":protos_all_py_pb2", @@ -28,7 +28,7 @@ py_library( py_library( name = "projector", srcs = ["__init__.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ ":metadata", @@ -42,7 +42,7 @@ py_test( size = "small", srcs = ["projector_api_test.py"], main = "projector_api_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":projector", "//tensorboard:expect_tensorflow_installed", @@ -56,7 +56,7 @@ py_test( size = "small", srcs = ["projector_plugin_test.py"], main = "projector_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":projector_plugin", "//tensorboard:expect_numpy_installed", @@ -76,7 +76,7 @@ py_test( size = "small", srcs = ["projector_plugin_test.py"], main = "projector_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":projector_plugin", "//tensorboard:expect_numpy_installed", @@ -94,7 +94,7 @@ py_test( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) tb_proto_library( @@ -106,7 +106,7 @@ tb_proto_library( py_binary( name = "projector_demo", srcs = ["projector_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":projector", "//tensorboard:expect_tensorflow_datasets_installed", diff --git a/tensorboard/plugins/scalar/BUILD b/tensorboard/plugins/scalar/BUILD index e37ae538b5..ebb7496c63 100644 --- a/tensorboard/plugins/scalar/BUILD +++ b/tensorboard/plugins/scalar/BUILD @@ -11,7 +11,7 @@ licenses(["notice"]) py_library( name = "scalars_plugin", srcs = ["scalars_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", "//tensorboard:errors", @@ -29,7 +29,7 @@ py_test( size = "medium", srcs = ["scalars_plugin_test.py"], main = "scalars_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":scalars_plugin", ":summary", @@ -52,7 +52,7 @@ py_test( size = "small", srcs = ["scalars_plugin_test.py"], main = "scalars_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":scalars_plugin", ":summary", @@ -73,7 +73,7 @@ py_test( py_binary( name = "scalars_demo", srcs = ["scalars_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", "//tensorboard:expect_tensorflow_installed", @@ -84,7 +84,7 @@ py_binary( py_binary( name = "scalars_demo_eager", srcs = ["scalars_demo_eager.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary", "//tensorboard:expect_tensorflow_installed", @@ -97,7 +97,7 @@ py_binary( py_library( name = "summary", srcs = ["summary.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":summary_v2", @@ -108,7 +108,7 @@ py_library( py_library( name = "summary_v2", srcs = ["summary_v2.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], @@ -124,7 +124,7 @@ py_test( name = "summary_test", size = "small", srcs = ["summary_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":summary", @@ -138,7 +138,7 @@ py_test( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], diff --git a/tensorboard/plugins/text/BUILD b/tensorboard/plugins/text/BUILD index eccb7ec412..cf7b12356e 100644 --- a/tensorboard/plugins/text/BUILD +++ b/tensorboard/plugins/text/BUILD @@ -11,7 +11,7 @@ licenses(["notice"]) py_library( name = "text_plugin", srcs = ["text_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", "//tensorboard:plugin_util", @@ -30,7 +30,7 @@ py_test( size = "small", srcs = ["text_plugin_test.py"], main = "text_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":text_plugin", "//tensorboard:context", @@ -51,7 +51,7 @@ py_test( size = "small", srcs = ["text_plugin_test.py"], main = "text_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":text_plugin", "//tensorboard:context", @@ -70,7 +70,7 @@ py_test( py_binary( name = "text_demo", srcs = ["text_demo.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":summary_v2", "//tensorboard:expect_absl_logging_installed", @@ -81,7 +81,7 @@ py_binary( py_library( name = "summary", srcs = ["summary.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//visibility:public", ], @@ -95,7 +95,7 @@ py_library( py_library( name = "summary_v2", srcs = ["summary_v2.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], @@ -111,7 +111,7 @@ py_test( name = "summary_test", size = "small", srcs = ["summary_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":metadata", ":summary", @@ -126,7 +126,7 @@ py_test( py_library( name = "metadata", srcs = ["metadata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], diff --git a/tensorboard/plugins/text_v2/BUILD b/tensorboard/plugins/text_v2/BUILD index f3b4e69f2f..0c3fe5b287 100644 --- a/tensorboard/plugins/text_v2/BUILD +++ b/tensorboard/plugins/text_v2/BUILD @@ -10,7 +10,7 @@ licenses(["notice"]) py_library( name = "text_v2_plugin", srcs = ["text_v2_plugin.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:expect_numpy_installed", "//tensorboard:plugin_util", @@ -28,7 +28,7 @@ py_test( size = "small", srcs = ["text_v2_plugin_test.py"], main = "text_v2_plugin_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":text_v2_plugin", "//tensorboard:context", diff --git a/tensorboard/scripts/BUILD b/tensorboard/scripts/BUILD index e0877697ed..fbb566a18d 100644 --- a/tensorboard/scripts/BUILD +++ b/tensorboard/scripts/BUILD @@ -8,7 +8,7 @@ licenses(["notice"]) py_binary( name = "generate_testdata", srcs = ["generate_testdata.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:expect_numpy_installed", "//tensorboard:expect_tensorflow_installed", @@ -19,6 +19,6 @@ py_binary( py_binary( name = "execrooter", srcs = ["execrooter.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], ) diff --git a/tensorboard/summary/BUILD b/tensorboard/summary/BUILD index 6bb5e8149e..4fa5248f0f 100644 --- a/tensorboard/summary/BUILD +++ b/tensorboard/summary/BUILD @@ -10,7 +10,7 @@ py_library( srcs = [ "__init__.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//tensorboard:internal"], deps = [ ":summary_v1", @@ -23,7 +23,7 @@ py_library( srcs = [ "v1.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ "//tensorboard/plugins/audio:summary", @@ -41,7 +41,7 @@ py_library( srcs = [ "v2.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], deps = [ "//tensorboard/plugins/audio:summary_v2", @@ -56,7 +56,7 @@ py_test( name = "summary_test", size = "small", srcs = ["summary_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":summary", @@ -79,7 +79,7 @@ py_library( "_tf/__init__.py", "_tf/summary/__init__.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = [ "//tensorboard:internal", ], @@ -93,7 +93,7 @@ py_test( name = "tf_summary_test", size = "small", srcs = ["tf_summary_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":tf_summary", "//tensorboard:expect_tensorflow_installed", diff --git a/tensorboard/summary/writer/BUILD b/tensorboard/summary/writer/BUILD index 10acc77d9f..67db27f901 100644 --- a/tensorboard/summary/writer/BUILD +++ b/tensorboard/summary/writer/BUILD @@ -11,7 +11,7 @@ py_library( "event_file_writer.py", "record_writer.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard/compat:tensorflow", "//tensorboard/compat/proto:protos_all_py_pb2", @@ -24,7 +24,7 @@ py_test( size = "small", srcs = ["event_file_writer_test.py"], main = "event_file_writer_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":writer", @@ -37,7 +37,7 @@ py_test( size = "small", srcs = ["event_file_writer_s3_test.py"], main = "event_file_writer_s3_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = [ "manual", "notap", @@ -54,7 +54,7 @@ py_test( size = "small", srcs = ["record_writer_test.py"], main = "record_writer_test.py", - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":writer", diff --git a/tensorboard/uploader/BUILD b/tensorboard/uploader/BUILD index 1939df8ef7..31f728ca60 100644 --- a/tensorboard/uploader/BUILD +++ b/tensorboard/uploader/BUILD @@ -62,6 +62,7 @@ py_test( py_library( name = "uploader_subcommand", srcs = ["uploader_subcommand.py"], + srcs_version = "PY3", visibility = ["//tensorboard:internal"], deps = [ ":auth", @@ -98,6 +99,7 @@ py_test( py_library( name = "uploader", srcs = ["uploader.py"], + srcs_version = "PY3", deps = [ ":logdir_loader", ":upload_tracker", @@ -121,6 +123,7 @@ py_library( py_library( name = "upload_tracker", srcs = ["upload_tracker.py"], + srcs_version = "PY3", deps = [], ) @@ -169,6 +172,7 @@ py_test( py_library( name = "dry_run_stubs", srcs = ["dry_run_stubs.py"], + srcs_version = "PY3", deps = [ "//tensorboard/uploader/proto:protos_all_py_pb2", ], @@ -188,6 +192,7 @@ py_test( py_library( name = "auth", srcs = ["auth.py"], + srcs_version = "PY3", deps = [ ":util", "//tensorboard:expect_google_auth_installed", @@ -211,6 +216,7 @@ py_test( py_library( name = "logdir_loader", srcs = ["logdir_loader.py"], + srcs_version = "PY3", deps = [ "//tensorboard/backend/event_processing:directory_watcher", "//tensorboard/backend/event_processing:io_wrapper", @@ -236,6 +242,7 @@ py_library( name = "test_util", testonly = 1, srcs = ["test_util.py"], + srcs_version = "PY3", deps = [ "//tensorboard:expect_grpc_installed", "//tensorboard/compat/proto:protos_all_py_pb2", @@ -246,6 +253,7 @@ py_library( py_library( name = "util", srcs = ["util.py"], + srcs_version = "PY3", ) py_test( @@ -263,6 +271,7 @@ py_test( py_library( name = "server_info", srcs = ["server_info.py"], + srcs_version = "PY3", deps = [ "//tensorboard:expect_requests_installed", "//tensorboard:version", @@ -291,6 +300,7 @@ py_test( py_library( name = "flags_parser", srcs = ["flags_parser.py"], + srcs_version = "PY3", visibility = ["//tensorboard:internal"], deps = [ "//tensorboard:expect_absl_flags_argparse_flags_installed", diff --git a/tensorboard/util/BUILD b/tensorboard/util/BUILD index 736d9a74f4..f45257e9b8 100644 --- a/tensorboard/util/BUILD +++ b/tensorboard/util/BUILD @@ -7,14 +7,14 @@ licenses(["notice"]) py_library( name = "argparse_util", srcs = ["argparse_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_test( name = "argparse_util_test", size = "small", srcs = ["argparse_util_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":argparse_util", "//tensorboard:test", @@ -24,7 +24,7 @@ py_test( py_library( name = "encoder", srcs = ["encoder.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":op_evaluator", "//tensorboard:expect_numpy_installed", @@ -36,7 +36,7 @@ py_test( name = "encoder_test", size = "small", srcs = ["encoder_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":encoder", "//tensorboard:expect_numpy_installed", @@ -48,7 +48,7 @@ py_test( py_library( name = "grpc_util", srcs = ["grpc_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:expect_grpc_installed", "//tensorboard:version", @@ -60,7 +60,7 @@ py_test( name = "grpc_util_test", size = "small", srcs = ["grpc_util_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":grpc_util", ":grpc_util_test_proto_py_pb2", @@ -85,7 +85,7 @@ tb_proto_library( py_library( name = "lazy_tensor_creator", srcs = ["lazy_tensor_creator.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard/compat", ], @@ -95,7 +95,7 @@ py_test( name = "lazy_tensor_creator_test", size = "small", srcs = ["lazy_tensor_creator_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":lazy_tensor_creator", "//tensorboard:expect_tensorflow_installed", @@ -105,7 +105,7 @@ py_test( py_library( name = "op_evaluator", srcs = ["op_evaluator.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard:expect_tensorflow_installed", ], @@ -115,7 +115,7 @@ py_test( name = "op_evaluator_test", size = "small", srcs = ["op_evaluator_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":op_evaluator", "//tensorboard:expect_tensorflow_installed", @@ -125,14 +125,14 @@ py_test( py_library( name = "platform_util", srcs = ["platform_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_test( name = "platform_util_test", size = "small", srcs = ["platform_util_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", tags = ["support_notf"], deps = [ ":platform_util", @@ -143,13 +143,13 @@ py_test( py_library( name = "tb_logging", srcs = ["tb_logging.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", ) py_library( name = "tensor_util", srcs = ["tensor_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "//tensorboard/compat/proto:protos_all_py_pb2", "//tensorboard/compat/tensorflow_stub", @@ -160,7 +160,7 @@ py_library( name = "test_util", testonly = 1, srcs = ["test_util.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":tb_logging", "//tensorboard:expect_absl_logging_installed", @@ -182,7 +182,7 @@ py_test( name = "timing_test", size = "small", srcs = ["timing_test.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ ":tb_logging", ":timing", diff --git a/third_party/bleach.BUILD b/third_party/bleach.BUILD index 8911d637c1..8acbe5d722 100644 --- a/third_party/bleach.BUILD +++ b/third_party/bleach.BUILD @@ -19,7 +19,7 @@ py_library( "bleach/utils.py", "bleach/version.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "@org_html5lib", "@org_pythonhosted_six", diff --git a/third_party/html5lib.BUILD b/third_party/html5lib.BUILD index 51be9a9bb2..80b0d8e75e 100644 --- a/third_party/html5lib.BUILD +++ b/third_party/html5lib.BUILD @@ -45,7 +45,7 @@ py_library( "html5lib/treewalkers/etree_lxml.py", "html5lib/treewalkers/genshi.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", deps = [ "@org_pythonhosted_six", "@org_pythonhosted_webencodings", diff --git a/third_party/markdown.BUILD b/third_party/markdown.BUILD index fa3e85d530..d7bbb21f02 100644 --- a/third_party/markdown.BUILD +++ b/third_party/markdown.BUILD @@ -11,5 +11,5 @@ exports_files(["LICENSE.md"]) py_library( name = "org_pythonhosted_markdown", srcs = glob(["markdown/**/*.py"]), - srcs_version = "PY2AND3", + srcs_version = "PY3", ) diff --git a/third_party/mock.BUILD b/third_party/mock.BUILD index 841af364cd..2897863695 100644 --- a/third_party/mock.BUILD +++ b/third_party/mock.BUILD @@ -10,6 +10,6 @@ py_library( srcs = [ "mock.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], ) diff --git a/third_party/portpicker.BUILD b/third_party/portpicker.BUILD index a291b3ee9b..cdac441565 100644 --- a/third_party/portpicker.BUILD +++ b/third_party/portpicker.BUILD @@ -8,6 +8,6 @@ exports_files(["LICENSE"]) py_library( name = "org_python_pypi_portpicker", srcs = glob(["*.py"]), - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], ) diff --git a/third_party/six.BUILD b/third_party/six.BUILD index 93e70569ea..78f1b1a906 100644 --- a/third_party/six.BUILD +++ b/third_party/six.BUILD @@ -9,6 +9,6 @@ exports_files(["LICENSE"]) py_library( name = "org_pythonhosted_six", srcs = ["six.py"], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], ) diff --git a/third_party/urllib3.BUILD b/third_party/urllib3.BUILD index 0de3202603..ad93acc581 100644 --- a/third_party/urllib3.BUILD +++ b/third_party/urllib3.BUILD @@ -10,5 +10,5 @@ exports_files(["LICENSE.md"]) py_library( name = "org_pythonhosted_urllib3", srcs = glob(["urllib3/**/*.py"]), - srcs_version = "PY2AND3", + srcs_version = "PY3", ) diff --git a/third_party/webencodings.BUILD b/third_party/webencodings.BUILD index 64bb4a8f94..87f5e9bc92 100644 --- a/third_party/webencodings.BUILD +++ b/third_party/webencodings.BUILD @@ -13,6 +13,6 @@ py_library( "webencodings/mklabels.py", "webencodings/x_user_defined.py", ], - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], ) diff --git a/third_party/werkzeug.BUILD b/third_party/werkzeug.BUILD index 41688ab579..5e20b4be5e 100644 --- a/third_party/werkzeug.BUILD +++ b/third_party/werkzeug.BUILD @@ -9,6 +9,6 @@ exports_files(["LICENSE"]) py_library( name = "org_pocoo_werkzeug", srcs = glob(["werkzeug/**/*.py"]), - srcs_version = "PY2AND3", + srcs_version = "PY3", visibility = ["//visibility:public"], )