From 2d785ea3d116fa7567ab4e2a571284f60d8a7f20 Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Sun, 21 May 2017 19:54:16 -0230 Subject: [PATCH] api: Use the console_scripts entry point to point to zulip-send. Instead of using the `scripts` keyword, we now use the `console_scripts` entry point to point to the zulip-send script to be installed. This is what the Python Packaging User Guide recommends for better cross-platform compatibility. --- setup.py | 6 +++++- bin/zulip-send => zulip/send.py | 0 2 files changed, 5 insertions(+), 1 deletion(-) rename bin/zulip-send => zulip/send.py (100%) diff --git a/setup.py b/setup.py index c885583..a48254a 100755 --- a/setup.py +++ b/setup.py @@ -57,7 +57,11 @@ package_info = dict( "examples/subscribe", "examples/unsubscribe", ])] + list(recur_expand('share/zulip', 'integrations/')), - scripts=["bin/zulip-send"], + entry_points={ + 'console_scripts': [ + 'zulip-send=zulip.send:main', + ], + }, ) # type: Dict[str, Any] setuptools_info = dict( diff --git a/bin/zulip-send b/zulip/send.py similarity index 100% rename from bin/zulip-send rename to zulip/send.py