testupload
21 lines
| 576 B
| text/plain
|
TextLexer
/ tools / testupload
Fernando Perez
|
r4452 | #!/usr/bin/env python | ||
"""Simple upload script to push up into the testing directory a local build | ||||
""" | ||||
from __future__ import print_function | ||||
Fernando Perez
|
r1542 | |||
Fernando Perez
|
r4452 | from toollib import * | ||
# Get main ipython dir, this will raise if it doesn't pass some checks | ||||
ipdir = get_ipdir() | ||||
distdir = pjoin(ipdir, 'dist') | ||||
# Load release info | ||||
execfile(pjoin(ipdir, 'IPython','core','release.py')) | ||||
# Build site addresses for file uploads | ||||
testing_site = '%s/testing/%s' % (archive, version) | ||||
cd(distdir) | ||||
Fernando Perez
|
r4454 | |||
# FIXME: this assumes the path *with the version number* exists on the server | ||||
Fernando Perez
|
r4452 | sh('scp * %s' % testing_site) | ||