From 84b073b05cdb1df5def8d456a05a8786a4c5b82b Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 24 Jun 2013 15:42:49 -0400 Subject: [PATCH] API: Release several additional API calls to users. (imported from commit 8b32fa126ab76dc80ee775482a9749dff17edf37) --- api/setup.py | 5 ++++- tools/build-api-tarball | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/api/setup.py b/api/setup.py index 813a636795..eb326500b0 100644 --- a/api/setup.py +++ b/api/setup.py @@ -27,7 +27,10 @@ setup(name='humbug', ], url='https://humbughq.com/dist/api/', packages=['humbug'], - data_files=[('share/humbug/examples', ["examples/humbugrc", "examples/send-message"])] + \ + data_files=[('share/humbug/examples', ["examples/humbugrc", "examples/send-message", "examples/subscribe", + "examples/get-public-streams", "examples/unsubscribe", + "examples/list-members", "examples/list-subscriptions", + "examples/print-messages"])] + \ list(recur_expand('share/humbug', 'integrations/')) + \ [('share/humbug/demos', [os.path.join("demos", relpath) for relpath in diff --git a/tools/build-api-tarball b/tools/build-api-tarball index b669b42b1a..c01be0f4bd 100755 --- a/tools/build-api-tarball +++ b/tools/build-api-tarball @@ -2,7 +2,7 @@ cd api/ # Strip out non-send_message bindings. -perl -i.bak -ne 'print if !m/Client._register/ ||m/send_message/ ||m/get_messages/ ||m/_register.*register/ ||m/get_events/' humbug/__init__.py +perl -i.bak -ne 'print if !m/Client._register/ ||m/send_message/ ||m/get_messages/ ||m/add_subscriptions/ ||m/list_subscriptions/ ||m/remove_subscriptions/ ||m/get_public_streams/ ||m/get_members/ ||m/_register.*register/ ||m/get_events/' humbug/__init__.py python setup.py sdist mv humbug/__init__.py.bak humbug/__init__.py echo API tarball written to api/dist