From 623557d1890660fceecba4e8e07a585d606d8ed0 Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Wed, 13 Sep 2017 11:39:15 +0200 Subject: [PATCH] zulip: Install all example scripts in the package's dir. --- zulip/MANIFEST.in | 10 +--------- zulip/setup.py | 17 ++--------------- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/zulip/MANIFEST.in b/zulip/MANIFEST.in index 92e4b52..34d7b67 100644 --- a/zulip/MANIFEST.in +++ b/zulip/MANIFEST.in @@ -1,11 +1,3 @@ recursive-include integrations * include README.md -include zulip/examples/zuliprc -include zulip/examples/send-message -include zulip/examples/subscribe -include zulip/examples/get-public-streams -include zulip/examples/unsubscribe -include zulip/examples/list-members -include zulip/examples/list-subscriptions -include zulip/examples/print-messages -include zulip/examples/recent-messages +include zulip/examples/* diff --git a/zulip/setup.py b/zulip/setup.py index 8fccfba..1c67dc1 100755 --- a/zulip/setup.py +++ b/zulip/setup.py @@ -41,21 +41,8 @@ package_info = dict( 'Topic :: Communications :: Chat', ], url='https://www.zulip.org/', - data_files=[('examples', - ["zulip/examples/zuliprc", - "zulip/examples/create-user", - "zulip/examples/edit-message", - "zulip/examples/get-presence", - "zulip/examples/get-public-streams", - "zulip/examples/list-members", - "zulip/examples/list-subscriptions", - "zulip/examples/print-events", - "zulip/examples/print-messages", - "zulip/examples/recent-messages", - "zulip/examples/send-message", - "zulip/examples/subscribe", - "zulip/examples/unsubscribe", - ])] + list(recur_expand('share/zulip', 'integrations')), + data_files=list(recur_expand('share/zulip', 'integrations')), + include_package_data=True, entry_points={ 'console_scripts': [ 'zulip-send=zulip.send:main',