• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1licenses(["notice"])  # Apache 2.0
2
3exports_files(["LICENSE"])
4
5load("//tensorflow:tensorflow.bzl", "py_test")
6
7filegroup(
8    name = "all_files",
9    srcs = glob(
10        ["**/*"],
11        exclude = [
12            "**/METADATA",
13            "**/OWNERS",
14        ],
15    ),
16    visibility = ["//tensorflow:__subpackages__"],
17)
18
19py_library(
20    name = "pyct",
21    srcs = [
22        "__init__.py",
23        "anno.py",
24        "ast_util.py",
25        "cfg.py",
26        "compiler.py",
27        "errors.py",
28        "inspect_utils.py",
29        "origin_info.py",
30        "parser.py",
31        "pretty_printer.py",
32        "qual_names.py",
33        "templates.py",
34        "transformer.py",
35    ],
36    srcs_version = "PY2AND3",
37    visibility = ["//visibility:public"],
38    deps = [
39        "@astor_archive//:astor",
40        "@gast_archive//:gast",
41        "@six_archive//:six",
42        "@termcolor_archive//:termcolor",
43        # TODO(mdan): Remove this dependency.
44        "//tensorflow/python:util",
45    ],
46)
47
48py_test(
49    name = "anno_test",
50    srcs = ["anno_test.py"],
51    srcs_version = "PY2AND3",
52    deps = [
53        ":pyct",
54        "//tensorflow/python:client_testlib",
55    ],
56)
57
58py_test(
59    name = "ast_util_test",
60    srcs = ["ast_util_test.py"],
61    srcs_version = "PY2AND3",
62    deps = [
63        ":pyct",
64        "//tensorflow/python:client_testlib",
65        "@gast_archive//:gast",
66    ],
67)
68
69py_test(
70    name = "cfg_test",
71    srcs = ["cfg_test.py"],
72    srcs_version = "PY2AND3",
73    deps = [
74        ":pyct",
75        "//tensorflow/python:client_testlib",
76        "@gast_archive//:gast",
77    ],
78)
79
80py_test(
81    name = "compiler_test",
82    srcs = ["compiler_test.py"],
83    srcs_version = "PY2AND3",
84    deps = [
85        ":pyct",
86        "//tensorflow/python:client_testlib",
87        "@gast_archive//:gast",
88    ],
89)
90
91py_test(
92    name = "inspect_utils_test",
93    srcs = ["inspect_utils_test.py"],
94    srcs_version = "PY2AND3",
95    deps = [
96        ":pyct",
97        "//tensorflow/python:client_testlib",
98        "//tensorflow/python/autograph/pyct/testing:test_modules",
99        "@gast_archive//:gast",
100    ],
101)
102
103py_test(
104    name = "origin_info_test",
105    srcs = ["origin_info_test.py"],
106    srcs_version = "PY2AND3",
107    deps = [
108        ":pyct",
109        "//tensorflow/python:client_testlib",
110    ],
111)
112
113py_test(
114    name = "parser_test",
115    srcs = ["parser_test.py"],
116    srcs_version = "PY2AND3",
117    deps = [
118        ":pyct",
119        "//tensorflow/python:client_testlib",
120    ],
121)
122
123py_test(
124    name = "pretty_printer_test",
125    srcs = ["pretty_printer_test.py"],
126    srcs_version = "PY2AND3",
127    deps = [
128        ":pyct",
129        "//tensorflow/python:client_testlib",
130    ],
131)
132
133py_test(
134    name = "qual_names_test",
135    srcs = ["qual_names_test.py"],
136    srcs_version = "PY2AND3",
137    deps = [
138        ":pyct",
139        "//tensorflow/python:client_testlib",
140    ],
141)
142
143py_test(
144    name = "templates_test",
145    srcs = ["templates_test.py"],
146    srcs_version = "PY2AND3",
147    deps = [
148        ":pyct",
149        "//tensorflow/python:client_testlib",
150        "@gast_archive//:gast",
151    ],
152)
153
154py_test(
155    name = "transformer_test",
156    srcs = ["transformer_test.py"],
157    srcs_version = "PY2AND3",
158    deps = [
159        ":pyct",
160        "//tensorflow/python:client_testlib",
161        "@gast_archive//:gast",
162    ],
163)
164