mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
[manual] Include the events API in the API tarballs.
Previously our receive API bindings were broken in our API tarballs because we weren't including the receive API bindings which they used. This requires our deploying the built API tarball to the prod server when we deploy it so that the link on /api isn't broken. (imported from commit 14ecaab34556f4e29c72f4f567d8af73c89d6297)
This commit is contained in:
@@ -33,7 +33,7 @@ from distutils.version import LooseVersion
|
||||
from ConfigParser import SafeConfigParser
|
||||
|
||||
|
||||
__version__ = "0.1.7"
|
||||
__version__ = "0.1.8"
|
||||
|
||||
# Check that we have a recent enough version
|
||||
# Older versions don't provide the 'json' attribute on responses.
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
|
||||
<p>We have a <a href="/api/endpoints">well-documented API</a> that allows you to build custom integrations, in addition to our <a href="/integrations">existing integrations</a>. For ease-of-use, we've created a Python module that you can drop in to a project to start interacting with our API.</p>
|
||||
<br/>
|
||||
<a href="https://humbughq.com/dist/api/python-humbug_0.1.7.tar.gz" class="btn btn-large btn-primary btn-block" type="button"><i class="icon-download icon-white"></i> Download Python bindings and examples</a>
|
||||
<span class="pull-right muted">Version 0.1.7</span>
|
||||
<a href="https://humbughq.com/dist/api/python-humbug_0.1.8.tar.gz" class="btn btn-large btn-primary btn-block" type="button"><i class="icon-download icon-white"></i> Download Python bindings and examples</a>
|
||||
<span class="pull-right muted">Version 0.1.8</span>
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
@@ -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/' humbug/__init__.py
|
||||
perl -i.bak -ne 'print if !m/Client._register/ ||m/send_message/ ||m/get_messages/ ||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
|
||||
|
||||
Reference in New Issue
Block a user