aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Rovner <mrovner@google.com>2019-04-30 12:49:04 -0700
committerCopybara-Service <copybara-worker@google.com>2019-04-30 12:49:19 -0700
commit279525e5298f1d6d326bd556d2de5f401cd9cf0e (patch)
tree2380a0d6e255066778fbf38a9aba545b16301cb8
parent10655a808fe54538fb9cc59da4d97a5a161cac77 (diff)
downloadabsl-py-279525e5298f1d6d326bd556d2de5f401cd9cf0e.tar.gz
n/a
PiperOrigin-RevId: 246002812
-rw-r--r--absl/BUILD2
-rw-r--r--absl/flags/BUILD12
-rw-r--r--absl/logging/BUILD5
-rw-r--r--absl/testing/BUILD7
4 files changed, 26 insertions, 0 deletions
diff --git a/absl/BUILD b/absl/BUILD
index 2db9274..5b666f9 100644
--- a/absl/BUILD
+++ b/absl/BUILD
@@ -84,6 +84,7 @@ py_test(
name = "tests/app_test",
srcs = ["tests/app_test.py"],
data = [":tests/app_test_helper_pure_python"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_enum_module",
@@ -101,6 +102,7 @@ py_test(
py_test(
name = "tests/command_name_test",
srcs = ["tests/command_name_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":command_name",
diff --git a/absl/flags/BUILD b/absl/flags/BUILD
index f23bb76..097ec30 100644
--- a/absl/flags/BUILD
+++ b/absl/flags/BUILD
@@ -106,6 +106,7 @@ py_library(
py_test(
name = "tests/_argument_parser_test",
srcs = ["tests/_argument_parser_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_argument_parser",
@@ -118,6 +119,7 @@ py_test(
py_test(
name = "tests/_flag_test",
srcs = ["tests/_flag_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_argument_parser",
@@ -133,6 +135,7 @@ py_test(
name = "tests/_flagvalues_test",
size = "small",
srcs = ["tests/_flagvalues_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_defines",
@@ -152,6 +155,7 @@ py_test(
name = "tests/_helpers_test",
size = "small",
srcs = ["tests/_helpers_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_helpers",
@@ -165,6 +169,7 @@ py_test(
name = "tests/_validators_test",
size = "small",
srcs = ["tests/_validators_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_defines",
@@ -180,6 +185,7 @@ py_test(
size = "small",
srcs = ["tests/argparse_flags_test.py"],
data = [":tests/argparse_flags_test_helper"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":argparse_flags",
@@ -197,6 +203,7 @@ py_binary(
name = "tests/argparse_flags_test_helper",
testonly = 1,
srcs = ["tests/argparse_flags_test_helper.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":argparse_flags",
@@ -209,6 +216,7 @@ py_test(
name = "tests/flags_formatting_test",
size = "small",
srcs = ["tests/flags_formatting_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_helpers",
@@ -221,6 +229,7 @@ py_test(
name = "tests/flags_helpxml_test",
size = "small",
srcs = ["tests/flags_helpxml_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_helpers",
@@ -236,6 +245,7 @@ py_test(
name = "tests/flags_numeric_bounds_test",
size = "small",
srcs = ["tests/flags_numeric_bounds_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_validators",
@@ -249,6 +259,7 @@ py_test(
name = "tests/flags_test",
size = "small",
srcs = ["tests/flags_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_exceptions",
@@ -267,6 +278,7 @@ py_test(
name = "tests/flags_unicode_literals_test",
size = "small",
srcs = ["tests/flags_unicode_literals_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":flags",
diff --git a/absl/logging/BUILD b/absl/logging/BUILD
index 8f32874..bf1872b 100644
--- a/absl/logging/BUILD
+++ b/absl/logging/BUILD
@@ -27,6 +27,7 @@ py_test(
name = "tests/converter_test",
size = "small",
srcs = ["tests/converter_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":converter",
@@ -39,6 +40,7 @@ py_test(
name = "tests/logging_test",
size = "small",
srcs = ["tests/logging_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":logging",
@@ -55,6 +57,7 @@ py_test(
name = "tests/log_before_import_test",
srcs = ["tests/log_before_import_test.py"],
main = "tests/log_before_import_test.py",
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":logging",
@@ -66,6 +69,7 @@ py_test(
py_test(
name = "tests/verbosity_flag_test",
srcs = ["tests/verbosity_flag_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":logging",
@@ -93,6 +97,7 @@ py_test(
size = "large",
srcs = ["tests/logging_functional_test.py"],
data = [":tests/logging_functional_test_helper"],
+ python_version = "PY2",
shard_count = 50,
srcs_version = "PY2AND3",
deps = [
diff --git a/absl/testing/BUILD b/absl/testing/BUILD
index d1d04b4..2264567 100644
--- a/absl/testing/BUILD
+++ b/absl/testing/BUILD
@@ -91,6 +91,7 @@ py_test(
size = "small",
srcs = ["tests/absltest_filtering_test.py"],
data = [":tests/absltest_filtering_test_helper"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_bazelize_command",
@@ -114,6 +115,7 @@ py_test(
size = "medium",
srcs = ["tests/absltest_randomization_test.py"],
data = [":tests/absltest_randomization_testcase"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_bazelize_command",
@@ -139,6 +141,7 @@ py_test(
size = "small",
srcs = ["tests/absltest_sharding_test.py"],
data = [":tests/absltest_sharding_test_helper"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_bazelize_command",
@@ -161,6 +164,7 @@ py_test(
size = "small",
srcs = ["tests/absltest_test.py"],
data = [":tests/absltest_test_helper"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_bazelize_command",
@@ -185,6 +189,7 @@ py2py3_test_binary(
py_test(
name = "tests/flagsaver_test",
srcs = ["tests/flagsaver_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":absltest",
@@ -196,6 +201,7 @@ py_test(
py_test(
name = "tests/parameterized_test",
srcs = ["tests/parameterized_test.py"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":absltest",
@@ -208,6 +214,7 @@ py_test(
name = "tests/xml_reporter_test",
srcs = ["tests/xml_reporter_test.py"],
data = [":tests/xml_reporter_helper_test"],
+ python_version = "PY2",
srcs_version = "PY2AND3",
deps = [
":_bazelize_command",