python-zulip-api: Add tools/provision for setting up dev env.
MODIFY
.gitignore
.gitignore
@@ -31,3 +31,6 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject
+
+# ignore virtualenv created by ./tools/provision
+.zulip-api-env

ADD
requirements.txt
+pycodestyle==2.3.1
+-e ./zulip
+-e ./zulip_bots
+-e ./zulip_botserver

ADD
tools/provision
+#!/bin/bash
+
+BASEDIR=`dirname $0`/..
+
+if [ ! -d "$BASEDIR/.zulip-api-env" ]; then
+ virtualenv $BASEDIR/.zulip-api-env
+ echo "Virtualenv created."
+fi
+
+source $BASEDIR/.zulip-api-env/bin/activate
+
+if [ ! -f "$BASEDIR/.zulip-api-env/updated" -o $BASEDIR/requirements.txt -nt $BASEDIR/.zulip-api-env/updated ]; then
+ pip install -r $BASEDIR/requirements.txt
+ touch $BASEDIR/.zulip-api-env/updated
+ echo "Requirements installed."
+fi

python-zulip-api: Add tools/provision for setting up dev env.