Newer
Older
import os, sys, re, shutil, zipfile, datetime
from qps.make import updateexternals
from qps.make.updateexternals import RemoteInfo, updateRemoteLocations
from eotimeseriesviewer 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',
prefixLocal='eotimeseriesviewer/externals/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)
def run():
updateRemotes('qps')
if __name__ == "__main__":
# update remotes source-code sources
to_update = ['qps']
import qps.make.updateexternals
qps.make.updateexternals.updateRemoteLocations(to_update)
exit()