integrations: make Asana dependency on python-dateutil explicit.
(imported from commit 354b42f68e3d1f980649993bad4dbe4ff79a11d6)
This commit is contained in:
parent
9fcd95b2df
commit
67b7be0b67
19
integrations/asana/zulip_asana_mirror
Normal file → Executable file
19
integrations/asana/zulip_asana_mirror
Normal file → Executable file
|
@ -22,11 +22,17 @@
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
|
#
|
||||||
|
# The "zulip_asana_mirror" script is run continuously, possibly on a work computer
|
||||||
|
# or preferably on a server.
|
||||||
|
#
|
||||||
|
# When restarted, it will attempt to pick up where it left off.
|
||||||
|
#
|
||||||
|
# python-dateutil is a dependency for this script.
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
import dateutil.parser
|
|
||||||
import dateutil.tz
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -34,6 +40,15 @@ import time
|
||||||
import urllib2
|
import urllib2
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
try:
|
||||||
|
import dateutil.parser
|
||||||
|
import dateutil.tz
|
||||||
|
except ImportError, e:
|
||||||
|
print >>sys.stderr, e
|
||||||
|
print >>sys.stderr, "Please install the python-dateutil package."
|
||||||
|
exit(1)
|
||||||
|
|
||||||
sys.path.insert(0, os.path.dirname(__file__))
|
sys.path.insert(0, os.path.dirname(__file__))
|
||||||
import zulip_asana_config as config
|
import zulip_asana_config as config
|
||||||
VERSION = "0.9"
|
VERSION = "0.9"
|
||||||
|
|
Loading…
Reference in a new issue