Break tools out into their own dirs
This commit is contained in:
parent
b92d95b80b
commit
9211668d9e
15 changed files with 59 additions and 66 deletions
9
projects/templater/BUILD
Normal file
9
projects/templater/BUILD
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
zapp_binary(
|
||||||
|
name = "templater",
|
||||||
|
main = "templater.py",
|
||||||
|
deps = [
|
||||||
|
py_requirement("click"),
|
||||||
|
py_requirement("jinja2"),
|
||||||
|
py_requirement("PyYAML"),
|
||||||
|
]
|
||||||
|
)
|
7
tools/autoflake/BUILD
Normal file
7
tools/autoflake/BUILD
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
py_binary(
|
||||||
|
name = "autoflake",
|
||||||
|
main = "__main__.py",
|
||||||
|
deps = [
|
||||||
|
py_requirement("autoflake"),
|
||||||
|
]
|
||||||
|
)
|
7
tools/isort/BUILD
Normal file
7
tools/isort/BUILD
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
py_binary(
|
||||||
|
name = "isort",
|
||||||
|
main = "__main__.py",
|
||||||
|
deps = [
|
||||||
|
py_requirement("isort"),
|
||||||
|
]
|
||||||
|
)
|
|
@ -32,35 +32,6 @@ toolchain(
|
||||||
toolchain_type = "@bazel_tools//tools/python:toolchain_type",
|
toolchain_type = "@bazel_tools//tools/python:toolchain_type",
|
||||||
)
|
)
|
||||||
|
|
||||||
py_binary(
|
|
||||||
name = "autoflake",
|
|
||||||
main = "autoflake_shim.py",
|
|
||||||
deps = [
|
|
||||||
py_requirement("autoflake"),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
py_binary(
|
|
||||||
name = "isort",
|
|
||||||
main = "isort_shim.py",
|
|
||||||
deps = [
|
|
||||||
py_requirement("isort"),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
py_binary(
|
|
||||||
name = "sphinx",
|
|
||||||
main = "sphinx_shim.py",
|
|
||||||
deps = [
|
|
||||||
py_requirement("click"),
|
|
||||||
py_requirement("recommonmark"),
|
|
||||||
py_requirement("sphinx"),
|
|
||||||
py_requirement("sphinxcontrib-openapi"),
|
|
||||||
py_requirement("sphinxcontrib-programoutput"),
|
|
||||||
py_requirement("livereload"),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
py_pytest(
|
py_pytest(
|
||||||
name = "test_licenses",
|
name = "test_licenses",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
@ -75,14 +46,6 @@ py_pytest(
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
py_binary(
|
|
||||||
name = "unify",
|
|
||||||
main = "unify_shim.py",
|
|
||||||
deps = [
|
|
||||||
py_requirement("unify"),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
py_binary(
|
py_binary(
|
||||||
name = "openapi",
|
name = "openapi",
|
||||||
main = "openapi_shim.py",
|
main = "openapi_shim.py",
|
||||||
|
@ -90,32 +53,3 @@ py_binary(
|
||||||
py_requirement("openapi-spec-validator"),
|
py_requirement("openapi-spec-validator"),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
# WARNING: YAMLLINT is GLP3'd code. Do not extend, modify or depend on this as a lib.
|
|
||||||
py_binary(
|
|
||||||
name = "yamllint",
|
|
||||||
main = "yamllint_shim.py",
|
|
||||||
deps = [
|
|
||||||
py_requirement("yamllint"),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
py_binary(
|
|
||||||
name = "templater",
|
|
||||||
main = "templater.py",
|
|
||||||
deps = [
|
|
||||||
py_requirement("click"),
|
|
||||||
py_requirement("jinja2"),
|
|
||||||
py_requirement("PyYAML"),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
py_binary(
|
|
||||||
name = "xfmt",
|
|
||||||
main = "xfmt.py",
|
|
||||||
deps = [
|
|
||||||
py_requirement("beautifulsoup4"),
|
|
||||||
py_requirement("click"),
|
|
||||||
py_requirement("lxml"),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
12
tools/sphinx/BUILD
Normal file
12
tools/sphinx/BUILD
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
py_binary(
|
||||||
|
name = "sphinx",
|
||||||
|
main = "__main__.py",
|
||||||
|
deps = [
|
||||||
|
py_requirement("click"),
|
||||||
|
py_requirement("recommonmark"),
|
||||||
|
py_requirement("sphinx"),
|
||||||
|
py_requirement("sphinxcontrib-openapi"),
|
||||||
|
py_requirement("sphinxcontrib-programoutput"),
|
||||||
|
py_requirement("livereload"),
|
||||||
|
]
|
||||||
|
)
|
7
tools/unify/BUILD
Normal file
7
tools/unify/BUILD
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
py_binary(
|
||||||
|
name = "unify",
|
||||||
|
main = "__main__.py",
|
||||||
|
deps = [
|
||||||
|
py_requirement("unify"),
|
||||||
|
]
|
||||||
|
)
|
9
tools/xfmt/BUILD
Normal file
9
tools/xfmt/BUILD
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
py_binary(
|
||||||
|
name = "xfmt",
|
||||||
|
main = "__main__.py",
|
||||||
|
deps = [
|
||||||
|
py_requirement("beautifulsoup4"),
|
||||||
|
py_requirement("click"),
|
||||||
|
py_requirement("lxml"),
|
||||||
|
]
|
||||||
|
)
|
8
tools/yamllint/BUILD
Normal file
8
tools/yamllint/BUILD
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# WARNING: YAMLLINT is GLP3'd code. Do not extend, modify or depend on this as a lib.
|
||||||
|
py_binary(
|
||||||
|
name = "yamllint",
|
||||||
|
main = "__main__.py",
|
||||||
|
deps = [
|
||||||
|
py_requirement("yamllint"),
|
||||||
|
]
|
||||||
|
)
|
Loading…
Reference in a new issue