From b651d90f0ee71d3cc2cfdd10c62bb350130a53a9 Mon Sep 17 00:00:00 2001 From: Maxime Alves LIRMM Date: Wed, 7 Oct 2020 07:02:15 +0200 Subject: [PATCH] =?UTF-8?q?[cli]=C2=A0add=20entry=20point=20to=20be=20just?= =?UTF-8?q?=20"halfapi"=20in=20Pipfile=20(=5F=5Fmain=5F=5F.py)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pipfile | 2 +- halfapi/__main__.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 halfapi/__main__.py diff --git a/Pipfile b/Pipfile index 844154e..851297a 100644 --- a/Pipfile +++ b/Pipfile @@ -20,4 +20,4 @@ pyjwt = "*" python_version = "3" [scripts] -halfapi = "halfapi.cli.cli:cli" +halfapi = "python -m halfapi" diff --git a/halfapi/__main__.py b/halfapi/__main__.py new file mode 100644 index 0000000..e75961b --- /dev/null +++ b/halfapi/__main__.py @@ -0,0 +1,3 @@ +from .cli.cli import cli +if __name__ == '__main__': + cli()