Newer
Older
import os, sys, re, shutil, zipfile, datetime
from qps.make import updateexternals
from qps.make.updateexternals import RemoteInfo, updateRemoteLocations
from timeseriesviewer import DIR_REPO
import git # install with: pip install gitpython
updateexternals.setProjectRepository(DIR_REPO)
RemoteInfo.create(r'https://bitbucket.org/jakimowb/qgispluginsupport.git',
key='qps',
prefixLocal='site-packages/qps',
prefixRemote=r'qps',
remoteBranch='master')
def updateRemotes(remoteLocations):
"""
Shortcut to update from terminal
:param remoteLocations: str or list of str with remote location keys to update.
"""
import qps.make.updateexternals
if isinstance(remoteLocations, str):
remoteLocations = [remoteLocations]
qps.make.updateexternals.updateRemoteLocations(remoteLocations)