Repository navigation
Expand file tree
/
Copy pathBUILD
More file actions
91 lines (83 loc) · 2.36 KB
/
Copy pathBUILD
File metadata and controls
91 lines (83 loc) · 2.36 KB
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
84
85
86
87
88
89
90
91
# Description:
# Scripts used to generate TensorFlow Python API.
load("//tensorflow:tensorflow.bzl", "py_test")
load("//tensorflow/python/tools/api/generator:api_init_files.bzl", "TENSORFLOW_API_INIT_FILES")
load("//tensorflow/python/tools/api/generator:api_init_files_v1.bzl", "TENSORFLOW_API_INIT_FILES_V1")
load("//tensorflow/python/tools/api/generator:api_init_files.bzl", "KERAS_API_INIT_FILES")
load("//tensorflow/python/tools/api/generator:api_init_files_v1.bzl", "KERAS_API_INIT_FILES_V1")
package(
licenses = ["notice"], # Apache 2.0
)
exports_files(
[
"LICENSE",
"create_python_api.py",
],
)
py_library(
name = "create_python_api",
srcs = ["//tensorflow/python/tools/api/generator:create_python_api.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [
"//tensorflow/python:util",
"//tensorflow/python/tools/api/generator:doc_srcs",
],
)
py_library(
name = "doc_srcs",
srcs = ["doc_srcs.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [
"//tensorflow/python:util",
],
)
py_test(
name = "create_python_api_test",
srcs = [
"create_python_api.py",
"create_python_api_test.py",
],
python_version = "PY3",
srcs_version = "PY2AND3",
deps = [
":doc_srcs",
"//tensorflow/python:client_testlib",
"//tensorflow/python:no_contrib",
],
)
py_test(
name = "tensorflow_doc_srcs_test",
srcs = ["doc_srcs_test.py"],
args = [
"--package=tensorflow.python",
"--api_name=tensorflow",
] + KERAS_API_INIT_FILES + KERAS_API_INIT_FILES_V1 + TENSORFLOW_API_INIT_FILES + TENSORFLOW_API_INIT_FILES_V1,
main = "doc_srcs_test.py",
python_version = "PY3",
srcs_version = "PY2AND3",
deps = [
":doc_srcs",
"//tensorflow/python:client_testlib",
"//tensorflow/python:no_contrib",
],
)
py_test(
name = "output_init_files_test",
srcs = ["output_init_files_test.py"],
data = [
"api_init_files.bzl",
"api_init_files_v1.bzl",
],
python_version = "PY3",
srcs_version = "PY2AND3",
tags = [
"no_pip",
],
deps = [
"//tensorflow/python:client_testlib",
"//tensorflow/python:no_contrib",
"//tensorflow/python/tools/api/generator:create_python_api",
],
)