aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorGravatar Frank Chen <frankchn@google.com>2018-01-08 10:27:15 -0800
committerGravatar Frank Chen <frankchn@google.com>2018-01-08 10:27:15 -0800
commitdc07d56b8dd32901b562728fe9f5e8605bff7e0a (patch)
tree7a090b32d13063aaa2345b2cdc35f896e91a8704 /third_party
parenta77096897f1a8068ca8f57ffb6e3d9e28508cc27 (diff)
parent3392e77ccc85ccb3a21b7d8350c62ff907b2a205 (diff)
Merge commit for internal changes
Diffstat (limited to 'third_party')
-rw-r--r--third_party/astor.BUILD23
-rw-r--r--third_party/gast.BUILD18
-rw-r--r--third_party/termcolor.BUILD14
3 files changed, 55 insertions, 0 deletions
diff --git a/third_party/astor.BUILD b/third_party/astor.BUILD
new file mode 100644
index 0000000000..c244e47ab7
--- /dev/null
+++ b/third_party/astor.BUILD
@@ -0,0 +1,23 @@
+# Description:
+# AST round-trip manipulation for Python.
+
+licenses(["notice"]) # New BSD
+
+exports_files(["LICENSE"])
+
+py_library(
+ name = "astor",
+ srcs = [
+ "astor/__init__.py",
+ "astor/code_gen.py",
+ "astor/codegen.py",
+ "astor/file_util.py",
+ "astor/node_util.py",
+ "astor/op_util.py",
+ "astor/rtrip.py",
+ "astor/source_repr.py",
+ "astor/string_repr.py",
+ "astor/tree_walk.py",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/third_party/gast.BUILD b/third_party/gast.BUILD
new file mode 100644
index 0000000000..0ccf8eff58
--- /dev/null
+++ b/third_party/gast.BUILD
@@ -0,0 +1,18 @@
+# Description:
+# Python AST that abstracts the underlying Python version.
+
+licenses(["notice"]) # BSD 3-clause
+
+exports_files(["LICENSE"])
+
+py_library(
+ name = "gast",
+ srcs = [
+ "gast/__init__.py",
+ "gast/ast2.py",
+ "gast/ast3.py",
+ "gast/astn.py",
+ "gast/gast.py",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/third_party/termcolor.BUILD b/third_party/termcolor.BUILD
new file mode 100644
index 0000000000..94fcb3beaa
--- /dev/null
+++ b/third_party/termcolor.BUILD
@@ -0,0 +1,14 @@
+# Description:
+# This is a library for outputing color to the terminal.
+
+licenses(["notice"]) # MIT
+
+exports_files(["LICENSE"])
+
+py_library(
+ name = "termcolor",
+ srcs = [
+ "termcolor.py",
+ ],
+ visibility = ["//visibility:public"],
+)