Show More
@@ -15,8 +15,6 b" distdir = pjoin(ipdir, 'dist')" | |||
|
15 | 15 | # Where I keep static backups of each release |
|
16 | 16 | ipbackupdir = os.path.expanduser('~/ipython/backup') |
|
17 | 17 | |
|
18 | # SSH root address of the archive site | |
|
19 | archive = 'ipython@archive.ipython.org:archive.ipython.org' | |
|
20 | 18 | # Start in main IPython dir |
|
21 | 19 | cd(ipdir) |
|
22 | 20 |
@@ -1,6 +1,19 b'' | |||
|
1 | #!/bin/sh | |
|
2 |
|
|
|
3 | ipdir=$PWD/.. | |
|
1 | #!/usr/bin/env python | |
|
2 | """Simple upload script to push up into the testing directory a local build | |
|
3 | """ | |
|
4 | from __future__ import print_function | |
|
4 | 5 | |
|
5 | cd $ipdir/dist | |
|
6 | scp * ipython@archive.ipython.org:archive.ipython.org/testing/ | |
|
6 | from toollib import * | |
|
7 | ||
|
8 | # Get main ipython dir, this will raise if it doesn't pass some checks | |
|
9 | ipdir = get_ipdir() | |
|
10 | distdir = pjoin(ipdir, 'dist') | |
|
11 | ||
|
12 | # Load release info | |
|
13 | execfile(pjoin(ipdir, 'IPython','core','release.py')) | |
|
14 | ||
|
15 | # Build site addresses for file uploads | |
|
16 | testing_site = '%s/testing/%s' % (archive, version) | |
|
17 | ||
|
18 | cd(distdir) | |
|
19 | sh('scp * %s' % testing_site) |
@@ -12,6 +12,11 b' from distutils.dir_util import remove_tree' | |||
|
12 | 12 | pjoin = os.path.join |
|
13 | 13 | cd = os.chdir |
|
14 | 14 | |
|
15 | # Constants | |
|
16 | ||
|
17 | # SSH root address of the archive site | |
|
18 | archive = 'ipython@archive.ipython.org:archive.ipython.org' | |
|
19 | ||
|
15 | 20 | # Utility functions |
|
16 | 21 | def sh(cmd): |
|
17 | 22 | """Run system command in shell, raise SystemExit if it returns an error.""" |
General Comments 0
You need to be logged in to leave comments.
Login now