STT-tensorflow/tensorflow/python/autograph/converters/BUILD
Dan Moldovan 3b7416dc43 Switch all sources to PY3 only.
PiperOrigin-RevId: 338459870
Change-Id: I27338c3b4d12fa6e23bf6fd550f65363109e96e4
2020-10-22 06:34:09 -07:00

225 lines
5.4 KiB
Python

load("//tensorflow:tensorflow.bzl", "py_test")
package(
licenses = ["notice"], # Apache 2.0
)
filegroup(
name = "all_files",
srcs = glob(
["**/*"],
exclude = [
"**/METADATA",
"**/OWNERS",
],
),
visibility = ["//tensorflow:__subpackages__"],
)
py_library(
name = "converters",
srcs = [
"asserts.py",
"break_statements.py",
"call_trees.py",
"conditional_expressions.py",
"continue_statements.py",
"control_flow.py",
"control_flow_deprecated_py2.py",
"directives.py",
"functions.py",
"list_comprehensions.py",
"lists.py",
"logical_expressions.py",
"return_statements.py",
"slices.py",
"variables.py",
],
srcs_version = "PY3",
visibility = ["//tensorflow:__subpackages__"],
deps = [
"//tensorflow/python:util",
"//tensorflow/python/autograph/core",
"//tensorflow/python/autograph/lang",
"//tensorflow/python/autograph/pyct",
"//tensorflow/python/autograph/pyct/static_analysis",
"//tensorflow/python/autograph/utils",
"@gast_archive//:gast",
],
)
py_test(
name = "asserts_test",
srcs = ["asserts_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
],
)
py_test(
name = "break_statements_test",
srcs = ["break_statements_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
],
)
py_test(
name = "call_trees_test",
srcs = ["call_trees_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
],
)
py_test(
name = "conditional_expressions_test",
srcs = ["conditional_expressions_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
],
)
py_test(
name = "continue_statements_test",
srcs = ["continue_statements_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
],
)
py_test(
name = "control_flow_test",
srcs = ["control_flow_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
# TOODO(b/145618471): Remove this transitive dependency.
"//tensorflow/python/distribute:input_lib",
],
)
py_test(
name = "directives_test",
srcs = ["directives_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
"//tensorflow/python/autograph/lang",
],
)
py_test(
name = "functions_test",
srcs = ["functions_test.py"],
python_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
"//tensorflow/python/autograph/pyct",
],
)
py_test(
name = "list_comprehensions_test",
srcs = ["list_comprehensions_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
],
)
py_test(
name = "lists_test",
srcs = ["lists_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
],
)
py_test(
name = "logical_expressions_test",
srcs = ["logical_expressions_test.py"],
python_version = "PY3",
srcs_version = "PY3",
tags = ["notsan"], # b/163218460
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
],
)
py_test(
name = "return_statements_test",
srcs = ["return_statements_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
"//tensorflow/python/autograph/pyct",
],
)
py_test(
name = "slices_test",
srcs = ["slices_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
"//tensorflow/python/autograph/pyct",
],
)
py_test(
name = "variables_test",
srcs = ["variables_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":converters",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
"//tensorflow/python/autograph/pyct",
],
)