1 licenses(["notice"]) # Apache 2.0 2 3 load("//tensorflow:tensorflow.bzl", "py_test") 4 5 filegroup( 6 name = "all_files", 7 srcs = glob( 8 ["**/*"], 9 exclude = [ 10 "**/METADATA", 11 "**/OWNERS", 12 ], 13 ), 14 visibility = ["//tensorflow:__subpackages__"], 15 ) 16 17 py_library( 18 name = "converters", 19 srcs = [ 20 "asserts.py", 21 "break_statements.py", 22 "builtin_functions.py", 23 "call_trees.py", 24 "continue_statements.py", 25 "control_flow.py", 26 "decorators.py", 27 "for_loops.py", 28 "list_comprehension.py", 29 "logical_expressions.py", 30 "side_effect_guards.py", 31 ], 32 srcs_version = "PY2AND3", 33 visibility = ["//tensorflow:__subpackages__"], 34 deps = [ 35 "@gast_archive//:gast", 36 ], 37 ) 38 39 py_library( 40 name = "test_lib", 41 srcs = [ 42 "converter_test_base.py", 43 ], 44 srcs_version = "PY2AND3", 45 visibility = ["//tensorflow:__subpackages__"], 46 deps = [ 47 ":converters", 48 "//tensorflow/contrib/py2tf/pyct/static_analysis", 49 "//tensorflow/contrib/py2tf/utils", 50 "@gast_archive//:gast", 51 "@six_archive//:six", 52 ], 53 ) 54 55 py_test( 56 name = "asserts_test", 57 srcs = ["asserts_test.py"], 58 srcs_version = "PY2AND3", 59 deps = [ 60 ":test_lib", 61 "//tensorflow/contrib/py2tf/pyct", 62 "//tensorflow/python:client_testlib", 63 ], 64 ) 65 66 py_test( 67 name = "break_statements_test", 68 srcs = ["break_statements_test.py"], 69 srcs_version = "PY2AND3", 70 deps = [ 71 ":test_lib", 72 "//tensorflow/contrib/py2tf/pyct", 73 "//tensorflow/python:client_testlib", 74 ], 75 ) 76 77 py_test( 78 name = "builtin_functions_test", 79 srcs = ["builtin_functions_test.py"], 80 srcs_version = "PY2AND3", 81 deps = [ 82 ":test_lib", 83 "//tensorflow/contrib/py2tf/pyct", 84 "//tensorflow/python:client_testlib", 85 ], 86 ) 87 88 py_test( 89 name = "call_trees_test", 90 srcs = ["call_trees_test.py"], 91 srcs_version = "PY2AND3", 92 deps = [ 93 ":test_lib", 94 "//tensorflow/contrib/py2tf/pyct", 95 "//tensorflow/python:client_testlib", 96 ], 97 ) 98 99 py_test( 100 name = "continue_statements_test", 101 srcs = ["continue_statements_test.py"], 102 srcs_version = "PY2AND3", 103 deps = [ 104 ":test_lib", 105 "//tensorflow/contrib/py2tf/pyct", 106 "//tensorflow/python:client_testlib", 107 ], 108 ) 109 110 py_test( 111 name = "control_flow_test", 112 srcs = ["control_flow_test.py"], 113 srcs_version = "PY2AND3", 114 deps = [ 115 ":test_lib", 116 "//tensorflow/contrib/py2tf/pyct", 117 "//tensorflow/python:client_testlib", 118 ], 119 ) 120 121 py_test( 122 name = "decorators_test", 123 srcs = ["decorators_test.py"], 124 srcs_version = "PY2AND3", 125 deps = [ 126 ":test_lib", 127 "//tensorflow/contrib/py2tf/pyct", 128 "//tensorflow/python:client_testlib", 129 ], 130 ) 131 132 py_test( 133 name = "for_loops_test", 134 srcs = ["for_loops_test.py"], 135 srcs_version = "PY2AND3", 136 deps = [ 137 ":test_lib", 138 "//tensorflow/contrib/py2tf/pyct", 139 "//tensorflow/python:client_testlib", 140 ], 141 ) 142 143 py_test( 144 name = "list_comprehension_test", 145 srcs = ["list_comprehension_test.py"], 146 srcs_version = "PY2AND3", 147 deps = [ 148 ":test_lib", 149 "//tensorflow/contrib/py2tf/pyct", 150 "//tensorflow/python:client_testlib", 151 ], 152 ) 153 154 py_test( 155 name = "logical_expressions_test", 156 srcs = ["logical_expressions_test.py"], 157 srcs_version = "PY2AND3", 158 deps = [ 159 ":test_lib", 160 "//tensorflow/contrib/py2tf/pyct", 161 "//tensorflow/python:client_testlib", 162 ], 163 ) 164 165 py_test( 166 name = "side_effect_guards_test", 167 srcs = ["side_effect_guards_test.py"], 168 srcs_version = "PY2AND3", 169 deps = [ 170 ":test_lib", 171 "//tensorflow/contrib/py2tf/pyct", 172 "//tensorflow/python:client_testlib", 173 ], 174 ) 175