mirror of https://github.com/zulip/zulip.git
API: Release several additional API calls to users.
(imported from commit 8b32fa126ab76dc80ee775482a9749dff17edf37)
This commit is contained in:
parent
1ec0ee0fd6
commit
84b073b05c
|
@ -27,7 +27,10 @@ setup(name='humbug',
|
||||||
],
|
],
|
||||||
url='https://humbughq.com/dist/api/',
|
url='https://humbughq.com/dist/api/',
|
||||||
packages=['humbug'],
|
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/')) + \
|
list(recur_expand('share/humbug', 'integrations/')) + \
|
||||||
[('share/humbug/demos',
|
[('share/humbug/demos',
|
||||||
[os.path.join("demos", relpath) for relpath in
|
[os.path.join("demos", relpath) for relpath in
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
cd api/
|
cd api/
|
||||||
# Strip out non-send_message bindings.
|
# 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
|
python setup.py sdist
|
||||||
mv humbug/__init__.py.bak humbug/__init__.py
|
mv humbug/__init__.py.bak humbug/__init__.py
|
||||||
echo API tarball written to api/dist
|
echo API tarball written to api/dist
|
||||||
|
|
Loading…
Reference in New Issue