From c8172435128c92a6aa0b9d9fdceea65860023ca7 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Fri, 1 Nov 2019 13:09:29 -0700 Subject: [PATCH] fix entry_points so that ntunnel is installed as an executable... --- README.md | 3 +++ setup.py | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 349fec7..bafbc7a 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,9 @@ TCP sockets. Example ------- +Note: If you have installed the package, there is also the program +`ntunnel` that can be used instead of `python -m ntunnel`. + Generate the keys: ``` python -m ntunnel genkey serverkey diff --git a/setup.py b/setup.py index 27aff48..378a4e5 100644 --- a/setup.py +++ b/setup.py @@ -29,9 +29,9 @@ setup(name='ntunnel', extras_require = { 'dev': [ 'coverage' ], }, - entry_poitns={ - 'console_scripts': { - 'ntunnel': 'ntunnel:main', - } + entry_points={ + 'console_scripts': [ + 'ntunnel = ntunnel.__main__:main', + ] } )