derAnfaenger
66da09324e
zulip package: Add API functions to access state.
2017-11-18 08:58:47 -08:00
neiljp (Neil Pilgrim)
c24c1d2e61
mypy: Add 'type: ignore' comment due to patching function.
2017-11-15 13:43:08 -08:00
neiljp (Neil Pilgrim)
9ed0fa9e6f
mypy: Remove unnecessary 'type: ignore' in google calendar.
2017-11-15 13:43:08 -08:00
neiljp (Neil Pilgrim)
3e55124f4e
mypy: Remove 'type: ignore's now that python/mypy#1248 is fixed.
2017-11-15 13:43:08 -08:00
derAnfaenger
c6aed00aa1
integrations: Make twitter bot handle search terms more intelligently.
...
When invoked with search terms, twitter bot looks for these terms
in the content of a message to find out if they match. However,
Twitter can return messages that don't directly contain a search term.
This commit adds the tweeter user handle and expanded urls to the
places to look for a search term.
2017-11-07 11:13:29 -08:00
derAnfaenger
2553cf45a5
integrations: Use default client init from options for twitter bot.
...
This allows users to specify a config file with the
--config-file option.
2017-11-07 11:13:29 -08:00
derAnfaenger
7e7c7598b7
integrations: Add requirements for twitter bot.
2017-11-07 11:13:29 -08:00
Alena Volkova
fe6deb2e03
mypy: zulip: Fix errors in tests/test_default_arguments.py.
2017-10-27 00:56:06 -04:00
Alena Volkova
99785a1be4
mypy: zulip: Fix errors in tests/__init__.py.
2017-10-27 00:56:06 -04:00
Alena Volkova
671a078137
mypy: zulip: Fix errors in integrations/zephyr/process_ccache.
2017-10-27 00:56:06 -04:00
Alena Volkova
8becce7c98
mypy: zulip: Annotate integrations/svn/zulip_svn_config.py.
2017-10-27 00:56:06 -04:00
Alena Volkova
ab192fe937
mypy: zulip: Annotate integrations/perforce/zulip_perforce_config.py.
2017-10-27 00:56:06 -04:00
Alena Volkova
7ad3324aaa
mypy: zulip: Fix errors in integrations/log2zulip/log2zulip.
2017-10-27 00:55:54 -04:00
Alena Volkova
995dc33334
mypy: zulip: Fix errors in integrations/irc/irc_mirror_backend.py.
2017-10-26 17:02:14 -04:00
Alena Volkova
af957c18fe
mypy: zulip: Annotate integrations/git/zulip_git_config.py.
2017-10-26 17:02:14 -04:00
Eeshan Garg
4af8bcd46e
packaging: Upgrade package version (0.3.5 -> 0.3.7).
2017-10-21 01:10:25 -02:30
derAnfaenger
0e6ea0a439
api: Add comments clarifying the request logic.
2017-10-11 22:24:12 -07:00
derAnfaenger
a7bfe692fa
api: Fix unused long-polling retry parameter.
...
This parameter was intended to control whether we give a long timeout
and related behavior, but it was accidentally not being passed into
the second layer of the library from the first.
While we're fixing it, make it actually limit the length of a timeout
to something reasonable.
2017-10-11 22:24:01 -07:00
Eeshan Garg
1e8e1f17c4
release: Upgrade package versions (0.3.4 -> 0.3.5).
2017-10-09 14:13:32 -02:30
Tim Abbott
297b62efc6
log2zulip: Use simpler code for accessing production venv.
...
The only problem with this resulting code is that setup_path_on_import
only works if the Python versions are the same, so you need to run
this with Python 3 in that case.
We try to resolve that for use on Zulip servers with
zulip/zulip:47c5aae5b242fb6d2f5e860602e0fc0af68419bb; since that's the
main case where the code path runs, that should be good enough.
2017-10-06 16:37:56 -07:00
Tim Abbott
dc2132e629
zephyr_mirror: Eliminate --root-path arguments.
...
These were quite messy code, and now that almost nobody is running
their own zephyr mirroring script (vs. using webathena), making the
zephyr mirroring script deployable outside the package isn't super
valuable.
2017-10-05 13:24:59 -07:00
Tim Abbott
963e6d0ad8
zephyr_mirror: Always run backend script from current directory.
...
While this technically removes functionality, it's rare that it would
be useful to do this.
2017-10-05 13:17:10 -07:00
Tim Abbott
96f2100974
zephyr: Remove root-path import nonsense from check-mirroring.
...
We no longer need this in order to access the script's dependencies,
since it now is part of a proper package.
2017-10-05 13:02:58 -07:00
Tim Abbott
bc4e54a35d
zephyr_mirror: Restart self using __file__, not root-path.
...
This should do the same thing, but with less complexity.
2017-10-05 12:46:01 -07:00
Tim Abbott
7e5a320343
zephyr_mirror: Move stamp_path to not be based on root_path.
2017-10-05 12:37:49 -07:00
Tim Abbott
6395dc1a45
zephyr_mirror: Update process_cache for repository move.
...
This also has the side effect of stopping using the --root-path
argument, which should no longer be required.
2017-10-05 12:21:11 -07:00
Tim Abbott
807afd2032
zephyr: Use add_default_arguments in sync_public_streams.
2017-09-29 16:21:18 -07:00
Tim Abbott
baa09bc26c
log2zulip: Clean up extra config path and add comments.
...
That extra complexity isn't particularly valuable.
2017-09-15 07:04:36 -07:00
derAnfaenger
b53dc5de4c
log2zulip: Make paths Windows compatible.
2017-09-15 07:04:36 -07:00
derAnfaenger
761d4f44c1
log2zulip: Use default argparser.
2017-09-15 07:04:36 -07:00
derAnfaenger
3fb640a5d0
zulip: Use canonical way to require an arg in subscribe.
2017-09-15 13:24:32 +02:00
derAnfaenger
a06437c4ee
zulip: Use canonical way to require an arg in unsubscribe.
2017-09-15 13:24:28 +02:00
derAnfaenger
0a49638e82
mypy: Add annotations to api_examples.py
2017-09-15 13:24:24 +02:00
derAnfaenger
61de5578f2
mypy: Fix annotations in core zulip files.
2017-09-15 13:24:09 +02:00
derAnfaenger
59d65309c7
zulip: Exit with info after provisioning script.
2017-09-15 03:06:17 -07:00
derAnfaenger
091f532da6
zulip-api-examples: Check and print path to script.
2017-09-15 02:06:38 -07:00
derAnfaenger
6630deda6a
twitter bots: Merge twitter-bot and twitter-search-bot.
2017-09-15 00:55:01 -07:00
derAnfaenger
623557d189
zulip: Install all example scripts in the package's dir.
2017-09-14 04:46:13 -07:00
derAnfaenger
2f044b44bd
zulip: Move examples to zulip/examples.
2017-09-14 04:46:13 -07:00
derAnfaenger
2f62507987
api: Add script to print path of examples directory.
...
Partially fixes #92 .
2017-09-14 04:46:13 -07:00
derAnfaenger
ae4bf8bbf4
zulip: Store examples in the package's directory.
2017-09-14 04:46:13 -07:00
derAnfaenger
59320f6b28
zulip: Explain use cases for generate_option_group()
method.
2017-09-14 11:39:11 +02:00
derAnfaenger
631c64ca6c
zulip: Move from simplejson to json.
...
This removes the simplejson dependency.
2017-09-14 02:26:56 -07:00
derAnfaenger
d05e932968
log2zulip: Replace ujson with json.
2017-09-12 02:14:51 -07:00
derAnfaenger
c6e7ddfb03
zulip package: Make check for provision failsafe.
...
It is not guaranteed that the integration scripts in
the Zulip repository even specify a `provision` option.
Therefore, checking the value of this option would fail.
Updating this with getattr and a default value.
2017-09-12 11:08:58 +02:00
derAnfaenger
cb770ffee9
irc-mirror.py: Allow optional provisioning.
...
To do so, we need to import all required internal modules after the
script had the option to provision. The provisioning itself is then
done by zulip.init_from_options().
2017-09-12 01:39:21 -07:00
derAnfaenger
61b609e6f2
irc integration: Make IRCBot a separate module.
...
This will allow us to import IRCBot at a later point
in the code, necessary for provsioning support.
2017-09-12 01:39:21 -07:00
derAnfaenger
9acd9d932c
irc-mirror.py: Make zulip_client an argument of IRCBot.
...
This is the first step towards moving IRCBot to a
separate file.
2017-09-12 01:39:21 -07:00
derAnfaenger
ec18cbff26
zulip package: Add provision option for scripts.
...
If enabled in a script, this option will try to install dependencies
in the requirements.txt in the script's directory.
2017-09-12 01:39:21 -07:00
derAnfaenger
50d8c5f7fe
zulip package: Add requirements.txt for each integration.
2017-09-12 01:39:21 -07:00