aboutsummaryrefslogtreecommitdiff
path: root/absl/flags
diff options
context:
space:
mode:
authorYilei Yang <yileiyang@google.com>2021-06-14 15:40:00 -0700
committerCopybara-Service <copybara-worker@google.com>2021-06-14 15:40:19 -0700
commite73b78fb1789a07d8494bf250318890ec0889312 (patch)
tree0aa49b12aaa1cf9831bcb2e33c51364429814b08 /absl/flags
parentd2f7e2a17b6b618d56289e86f2fd2a35e7d6866d (diff)
downloadabsl-py-e73b78fb1789a07d8494bf250318890ec0889312.tar.gz
Stop testing Python 2 in absl.
PiperOrigin-RevId: 379363540 Change-Id: Ic67abe5de18ad10764007066ea0ecb2bedf1f1da
Diffstat (limited to 'absl/flags')
-rw-r--r--absl/flags/BUILD62
1 files changed, 36 insertions, 26 deletions
diff --git a/absl/flags/BUILD b/absl/flags/BUILD
index 340ae93..1de1d6f 100644
--- a/absl/flags/BUILD
+++ b/absl/flags/BUILD
@@ -1,5 +1,3 @@
-load("//absl:_build_defs.bzl", "py2and3_test", "py2py3_test_binary")
-
licenses(["notice"]) # Apache 2.0
exports_files(["LICENSE"])
@@ -119,10 +117,11 @@ py_library(
],
)
-py2and3_test(
+py_test(
name = "tests/_argument_parser_test",
srcs = ["tests/_argument_parser_test.py"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":_argument_parser",
"//absl:_enum_module",
@@ -132,10 +131,11 @@ py2and3_test(
],
)
-py2and3_test(
+py_test(
name = "tests/_flag_test",
srcs = ["tests/_flag_test.py"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":_argument_parser",
":_exceptions",
@@ -146,11 +146,12 @@ py2and3_test(
],
)
-py2and3_test(
+py_test(
name = "tests/_flagvalues_test",
size = "small",
srcs = ["tests/_flagvalues_test.py"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":_defines",
":_exceptions",
@@ -165,11 +166,12 @@ py2and3_test(
],
)
-py2and3_test(
+py_test(
name = "tests/_helpers_test",
size = "small",
srcs = ["tests/_helpers_test.py"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":_helpers",
":tests/module_bar",
@@ -178,11 +180,12 @@ py2and3_test(
],
)
-py2and3_test(
+py_test(
name = "tests/_validators_test",
size = "small",
srcs = ["tests/_validators_test.py"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":_defines",
":_exceptions",
@@ -192,12 +195,13 @@ py2and3_test(
],
)
-py2and3_test(
+py_test(
name = "tests/argparse_flags_test",
size = "small",
srcs = ["tests/argparse_flags_test.py"],
data = [":tests/argparse_flags_test_helper"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":argparse_flags",
":flags",
@@ -210,11 +214,12 @@ py2and3_test(
],
)
-py2py3_test_binary(
+py_binary(
name = "tests/argparse_flags_test_helper",
testonly = 1,
srcs = ["tests/argparse_flags_test_helper.py"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":argparse_flags",
":flags",
@@ -222,11 +227,12 @@ py2py3_test_binary(
],
)
-py2and3_test(
+py_test(
name = "tests/flags_formatting_test",
size = "small",
srcs = ["tests/flags_formatting_test.py"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":_helpers",
":flags",
@@ -234,11 +240,12 @@ py2and3_test(
],
)
-py2and3_test(
+py_test(
name = "tests/flags_helpxml_test",
size = "small",
srcs = ["tests/flags_helpxml_test.py"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":_helpers",
":flags",
@@ -249,11 +256,12 @@ py2and3_test(
],
)
-py2and3_test(
+py_test(
name = "tests/flags_numeric_bounds_test",
size = "small",
srcs = ["tests/flags_numeric_bounds_test.py"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":_validators",
":flags",
@@ -262,11 +270,12 @@ py2and3_test(
],
)
-py2and3_test(
+py_test(
name = "tests/flags_test",
size = "small",
srcs = ["tests/flags_test.py"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":_exceptions",
":_helpers",
@@ -280,11 +289,12 @@ py2and3_test(
],
)
-py2and3_test(
+py_test(
name = "tests/flags_unicode_literals_test",
size = "small",
srcs = ["tests/flags_unicode_literals_test.py"],
- srcs_version = "PY2AND3",
+ python_version = "PY3",
+ srcs_version = "PY3",
deps = [
":flags",
"//absl/testing:absltest",