From 4080654c8f03ec34f2822c14db5fd8b75f63d569 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Sat, 6 Jan 2018 05:34:03 -0800 Subject: Add bazel file for astor, gast and termcolor. Rewrite these deps' internal counterparts instead of removing them. Re-enable a few tests to verify. PiperOrigin-RevId: 181035075 --- third_party/astor.BUILD | 23 +++++++++++++++++++++++ third_party/gast.BUILD | 18 ++++++++++++++++++ third_party/termcolor.BUILD | 14 ++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 third_party/astor.BUILD create mode 100644 third_party/gast.BUILD create mode 100644 third_party/termcolor.BUILD (limited to 'third_party') 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"], +) -- cgit v1.2.3