1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
licenses(["notice"]) # Apache 2.0
load("//tensorflow:tensorflow.bzl", "py_test")
filegroup(
name = "all_files",
srcs = glob(
["**/*"],
exclude = [
"**/METADATA",
"**/OWNERS",
],
),
visibility = ["//tensorflow:__subpackages__"],
)
py_library(
name = "py2tf",
srcs = [
"__init__.py",
"api.py",
"config.py",
"conversion.py",
"naming.py",
],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [
"//tensorflow/contrib/py2tf/converters",
"//tensorflow/contrib/py2tf/pyct",
"//tensorflow/contrib/py2tf/pyct/static_analysis",
"@gast_archive//:gast",
"@six_archive//:six",
],
)
# Separate target that allows access to internal symbols for testing.
py_library(
name = "py2tf_internal",
srcs = [
"api.py",
"config.py",
"conversion.py",
"naming.py",
],
srcs_version = "PY2AND3",
visibility = ["//tensorflow:__subpackages__"],
deps = [
"//tensorflow/contrib/py2tf/converters",
"//tensorflow/contrib/py2tf/pyct",
"//tensorflow/contrib/py2tf/pyct/static_analysis",
"@gast_archive//:gast",
"@six_archive//:six",
],
)
py_test(
name = "api_test",
srcs = ["api_test.py"],
deps = [
":py2tf_internal",
"//tensorflow/python:client_testlib",
],
)
py_test(
name = "conversion_test",
srcs = ["conversion_test.py"],
deps = [
":py2tf_internal",
"//tensorflow/python:client_testlib",
"@gast_archive//:gast",
],
)
py_test(
name = "naming_test",
srcs = ["naming_test.py"],
deps = [
":py2tf_internal",
"//tensorflow/python:client_testlib",
],
)
|