diff options
author | Abseil Team <absl-team@google.com> | 2019-11-11 05:03:49 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2019-11-11 05:04:14 -0800 |
commit | fa63785ae086dc722daa5dab361131d78a9cae33 (patch) | |
tree | 29a9d4709b8c043448f773a93d61854c5db20a76 | |
parent | 2a591ca44fed130d7ac6a72363661a7bf46bfa82 (diff) | |
download | absl-py-fa63785ae086dc722daa5dab361131d78a9cae33.tar.gz |
Sort load arguments in BUILD files
PiperOrigin-RevId: 279714061
Change-Id: I0b179b13d0292d42d143b79142505b7b66e8e21e
-rw-r--r-- | absl/BUILD | 4 | ||||
-rw-r--r-- | absl/logging/BUILD | 4 | ||||
-rw-r--r-- | absl/testing/BUILD | 23 |
3 files changed, 26 insertions, 5 deletions
@@ -1,9 +1,9 @@ +load(":_build_defs.bzl", "py2and3_test", "py2py3_test_binary") + licenses(["notice"]) # Apache 2.0 exports_files(["LICENSE"]) -load(":_build_defs.bzl", "py2py3_test_binary", "py2and3_test") - py_library( name = "app", srcs = [ diff --git a/absl/logging/BUILD b/absl/logging/BUILD index 27c6dae..61e1861 100644 --- a/absl/logging/BUILD +++ b/absl/logging/BUILD @@ -1,9 +1,9 @@ +load("//absl:_build_defs.bzl", "py2and3_test", "py2py3_test_binary") + licenses(["notice"]) # Apache 2.0 exports_files(["LICENSE"]) -load("//absl:_build_defs.bzl", "py2py3_test_binary", "py2and3_test") - py_library( name = "logging", srcs = ["__init__.py"], diff --git a/absl/testing/BUILD b/absl/testing/BUILD index 7ec501f..bf22abb 100644 --- a/absl/testing/BUILD +++ b/absl/testing/BUILD @@ -1,8 +1,29 @@ +load("//absl:_build_defs.bzl", "py2and3_test", "py2py3_test_binary") + licenses(["notice"]) # Apache 2.0 exports_files(["LICENSE"]) -load("//absl:_build_defs.bzl", "py2py3_test_binary", "py2and3_test") +config_setting( + name = "osx", + constraint_values = ["//third_party/bazel_platforms/os:osx"], +) + +config_setting( + name = "ios", + flag_values = {"//tools/cpp:cc_target_os": "apple"}, +) + +_absl_test_platform_deps = select({ + ":osx": [], + ":ios": [], + # TODO(b/75911467): Remove after :osx works in host mode + "//tools/cc_target_os:platform_macos": [], + "//conditions:default": [ + "//third_party/py/faulthandler", + "//third_party/py/readline", # Enables arrow keys and tab-completion in (pdb). + ], +}) py_library( name = "absltest", |