Skip to content

Commit

Permalink
Remove srcs_version and python_version attributes, as they alread…
Browse files Browse the repository at this point in the history
…y default to `"PY3"`

PiperOrigin-RevId: 721304245
  • Loading branch information
oprypin authored and copybara-github committed Jan 30, 2025
1 parent 78fb38c commit da86f08
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 96 deletions.
11 changes: 0 additions & 11 deletions absl/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ py_library(
srcs = [
"app.py",
],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [
":command_name",
Expand All @@ -21,15 +20,13 @@ py_library(
py_library(
name = "command_name",
srcs = ["command_name.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
)

py_library(
name = "tests/app_test_helper",
testonly = 1,
srcs = ["tests/app_test_helper.py"],
srcs_version = "PY2AND3",
deps = [
":app",
"//absl/flags",
Expand All @@ -41,8 +38,6 @@ py_binary(
testonly = 1,
srcs = ["tests/app_test_helper.py"],
main = "tests/app_test_helper.py",
python_version = "PY3",
srcs_version = "PY3",
deps = [
":app",
"//absl/flags",
Expand All @@ -53,8 +48,6 @@ py_test(
name = "tests/app_test",
srcs = ["tests/app_test.py"],
data = [":tests/app_test_helper_pure_python"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":app",
":tests/app_test_helper",
Expand All @@ -68,8 +61,6 @@ py_test(
py_test(
name = "tests/command_name_test",
srcs = ["tests/command_name_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":command_name",
"//absl/testing:absltest",
Expand All @@ -79,8 +70,6 @@ py_test(
py_test(
name = "tests/python_version_test",
srcs = ["tests/python_version_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
"//absl/flags",
"//absl/testing:absltest",
Expand Down
37 changes: 0 additions & 37 deletions absl/flags/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ licenses(["notice"])
py_library(
name = "flags",
srcs = ["__init__.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [
":_argument_parser",
Expand All @@ -25,15 +24,13 @@ py_library(
py_library(
name = "argparse_flags",
srcs = ["argparse_flags.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [":flags"],
)

py_library(
name = "_argument_parser",
srcs = ["_argument_parser.py"],
srcs_version = "PY2AND3",
deps = [
":_helpers",
],
Expand All @@ -42,7 +39,6 @@ py_library(
py_library(
name = "_defines",
srcs = ["_defines.py"],
srcs_version = "PY2AND3",
deps = [
":_argument_parser",
":_exceptions",
Expand All @@ -56,7 +52,6 @@ py_library(
py_library(
name = "_exceptions",
srcs = ["_exceptions.py"],
srcs_version = "PY2AND3",
deps = [
":_helpers",
],
Expand All @@ -65,7 +60,6 @@ py_library(
py_library(
name = "_flag",
srcs = ["_flag.py"],
srcs_version = "PY2AND3",
deps = [
":_argument_parser",
":_exceptions",
Expand All @@ -76,7 +70,6 @@ py_library(
py_library(
name = "_flagvalues",
srcs = ["_flagvalues.py"],
srcs_version = "PY2AND3",
deps = [
":_exceptions",
":_flag",
Expand All @@ -88,15 +81,13 @@ py_library(
py_library(
name = "_helpers",
srcs = ["_helpers.py"],
srcs_version = "PY2AND3",
)

py_library(
name = "_validators",
srcs = [
"_validators.py",
],
srcs_version = "PY2AND3",
deps = [
":_exceptions",
":_flagvalues",
Expand All @@ -109,7 +100,6 @@ py_library(
srcs = [
"_validators_classes.py",
],
srcs_version = "PY2AND3",
deps = [
":_exceptions",
],
Expand All @@ -118,8 +108,6 @@ py_library(
py_test(
name = "tests/_argument_parser_test",
srcs = ["tests/_argument_parser_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":_argument_parser",
"//absl/testing:absltest",
Expand All @@ -130,8 +118,6 @@ py_test(
py_test(
name = "tests/_flag_test",
srcs = ["tests/_flag_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":_argument_parser",
":_exceptions",
Expand All @@ -145,8 +131,6 @@ py_test(
name = "tests/_flagvalues_test",
size = "small",
srcs = ["tests/_flagvalues_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":_defines",
":_exceptions",
Expand All @@ -164,8 +148,6 @@ py_test(
name = "tests/_helpers_test",
size = "small",
srcs = ["tests/_helpers_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":_helpers",
":tests/module_bar",
Expand All @@ -178,8 +160,6 @@ py_test(
name = "tests/_validators_test",
size = "small",
srcs = ["tests/_validators_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":_defines",
":_exceptions",
Expand All @@ -194,8 +174,6 @@ py_test(
size = "small",
srcs = ["tests/argparse_flags_test.py"],
data = [":tests/argparse_flags_test_helper"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":argparse_flags",
":flags",
Expand All @@ -210,8 +188,6 @@ py_binary(
name = "tests/argparse_flags_test_helper",
testonly = 1,
srcs = ["tests/argparse_flags_test_helper.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":argparse_flags",
":flags",
Expand All @@ -223,8 +199,6 @@ py_test(
name = "tests/flags_formatting_test",
size = "small",
srcs = ["tests/flags_formatting_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":_helpers",
":flags",
Expand All @@ -236,8 +210,6 @@ py_test(
name = "tests/flags_helpxml_test",
size = "small",
srcs = ["tests/flags_helpxml_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":_helpers",
":flags",
Expand All @@ -250,8 +222,6 @@ py_test(
name = "tests/flags_numeric_bounds_test",
size = "small",
srcs = ["tests/flags_numeric_bounds_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":_validators",
":flags",
Expand All @@ -263,8 +233,6 @@ py_test(
name = "tests/flags_test",
size = "small",
srcs = ["tests/flags_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":_exceptions",
":_helpers",
Expand All @@ -280,8 +248,6 @@ py_test(
name = "tests/flags_unicode_literals_test",
size = "small",
srcs = ["tests/flags_unicode_literals_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":flags",
"//absl/testing:absltest",
Expand All @@ -292,7 +258,6 @@ py_library(
name = "tests/module_bar",
testonly = 1,
srcs = ["tests/module_bar.py"],
srcs_version = "PY2AND3",
deps = [
":_helpers",
":flags",
Expand All @@ -303,15 +268,13 @@ py_library(
name = "tests/module_baz",
testonly = 1,
srcs = ["tests/module_baz.py"],
srcs_version = "PY2AND3",
deps = [":flags"],
)

py_library(
name = "tests/module_foo",
testonly = 1,
srcs = ["tests/module_foo.py"],
srcs_version = "PY2AND3",
deps = [
":_helpers",
":flags",
Expand Down
14 changes: 0 additions & 14 deletions absl/logging/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ licenses(["notice"])
py_library(
name = "logging",
srcs = ["__init__.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [
":converter",
Expand All @@ -20,16 +19,13 @@ py_library(
py_library(
name = "converter",
srcs = ["converter.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
)

py_test(
name = "tests/converter_test",
size = "small",
srcs = ["tests/converter_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converter",
":logging",
Expand All @@ -41,8 +37,6 @@ py_test(
name = "tests/logging_test",
size = "small",
srcs = ["tests/logging_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":logging",
"//absl/flags",
Expand All @@ -56,8 +50,6 @@ py_test(
name = "tests/log_before_import_test",
srcs = ["tests/log_before_import_test.py"],
main = "tests/log_before_import_test.py",
python_version = "PY3",
srcs_version = "PY3",
deps = [
":logging",
"//absl/testing:absltest",
Expand All @@ -67,8 +59,6 @@ py_test(
py_test(
name = "tests/verbosity_flag_test",
srcs = ["tests/verbosity_flag_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":logging",
"//absl/flags",
Expand All @@ -80,8 +70,6 @@ py_binary(
name = "tests/logging_functional_test_helper",
testonly = 1,
srcs = ["tests/logging_functional_test_helper.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":logging",
"//absl:app",
Expand All @@ -94,9 +82,7 @@ py_test(
size = "large",
srcs = ["tests/logging_functional_test.py"],
data = [":tests/logging_functional_test_helper"],
python_version = "PY3",
shard_count = 50,
srcs_version = "PY3",
deps = [
":logging",
"//absl/testing:_bazelize_command",
Expand Down
Loading

0 comments on commit da86f08

Please sign in to comment.