From f69b243c4f56aa9493a8fbc9623e842ee05ad036 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sat, 21 Aug 2021 17:20:13 -0600 Subject: [PATCH] Convert lilith to a runnable --- projects/lilith/BUILD | 14 ++------------ .../src/python/lilith/{repl.py => __main__.py} | 0 2 files changed, 2 insertions(+), 12 deletions(-) rename projects/lilith/src/python/lilith/{repl.py => __main__.py} (100%) diff --git a/projects/lilith/BUILD b/projects/lilith/BUILD index ac706b4..a972505 100644 --- a/projects/lilith/BUILD +++ b/projects/lilith/BUILD @@ -1,21 +1,11 @@ py_project( name = "lilith", + main = "src/python/lilith/__main__.py", lib_deps = [ py_requirement("lark"), + py_requirement("prompt_toolkit"), ], test_deps = [ py_requirement("hypothesis"), - ] -) - -py_binary( - name = "repl", - main = "src/python/lilith/repl.py", - imports = [ - "src/python", ], - deps = [ - ":lilith", - py_requirement("prompt_toolkit"), - ] ) diff --git a/projects/lilith/src/python/lilith/repl.py b/projects/lilith/src/python/lilith/__main__.py similarity index 100% rename from projects/lilith/src/python/lilith/repl.py rename to projects/lilith/src/python/lilith/__main__.py