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
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
6630deda6a
twitter bots: Merge twitter-bot and twitter-search-bot.
2017-09-15 00:55:01 -07: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
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
50d8c5f7fe
zulip package: Add requirements.txt for each integration.
2017-09-12 01:39:21 -07:00
Tim Abbott
bbed4a625d
log2zulip: Fix an extremely long line.
2017-08-30 10:01:48 -07:00
Greg Price
49fb205ae7
log2zulip: Fix to work on Python 3.
...
I'm not thrilled with the `replace` error handler losing information
if the logfile contains invalid UTF-8 for some reason; but that sure
beats a UnicodeDecodeError, and for this script I can't quite be
bothered to run the rather tricky riddle trail that Python 3 makes it
to pass arbitrary byte data through layers of ordinary text processing.
2017-08-30 09:57:57 -07:00
derAnfaenger
86729a862c
api: Remove unnecessary API key details.
...
Fixes #1 .
2017-08-29 14:24:19 -07:00
derAnfaenger
26a774503b
twitter bots: Write internal config to separate file.
...
Tweaked by tabbott to remove duplicate write_config lines.
Fixes #88 .
2017-08-27 19:27:13 -07:00
Tim Abbott
9c18c0b4ed
twitter: Fix buggy handling of config_file in Python 3.
...
This fixes the most broken part of #88 .
2017-08-22 17:20:54 -07:00
Eeshan Garg
09060afcab
integrations/rss: Upgrade to argparse.
2017-08-03 12:34:26 -07:00
Eeshan Garg
c4480311d7
integrations/nagios: Upgrade to argparse.
2017-08-02 00:58:55 -02:30
Eeshan Garg
18a73324a9
integrations/twitter: Upgrade to argparse.
2017-08-02 00:51:25 -02:30
Eeshan Garg
3b04b55ffd
integrations/irc: Upgrade to argparse.
2017-08-01 19:09:08 -02:30
Eeshan Garg
780ccb392e
integrations/google: Upgrade to argparse.
2017-08-01 19:08:58 -02:30
Eeshan Garg
3d0f7955b6
api: Move the API package to a dedicated subdirectory.
...
In order to keep all three packages (zulip, zulip_bots,
zulip_botserver) in the same repo, all package files must now
be nested one level deeper.
For instance, python-zulip-api/zulip_bots/zulip_bots/bots/, instead
of python-zulip-api/zulip_bots/bots/.
2017-07-18 02:20:32 -02:30